Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Vector.Storable.ByteString
Description
Convert between ByteString
and Vector.Storable
without copying.
Synopsis
- byteStringToVector :: Storable a => ByteString -> Vector a
- vectorToByteString :: Storable a => Vector a -> ByteString
Documentation
See also the caveats mentioned in the package's top-level documentation.
byteStringToVector :: Storable a => ByteString -> Vector a Source #
Convert a
to a ByteString
.Vector
This function can produce
s which do not obey
architectural alignment requirements. On Vector
x86
this should
not be an issue.
vectorToByteString :: Storable a => Vector a -> ByteString Source #
Convert a
to a Vector
.ByteString