bytestring-to-vector-0.3.0.1: Convert between ByteString and Vector.Storable without copying

Safe HaskellNone
LanguageHaskell2010

Data.Vector.Storable.ByteString

Description

Convert between ByteString and Vector.Storable without copying.

Synopsis

Documentation

See also the caveats mentioned in the package's top-level documentation.

byteStringToVector :: Storable a => ByteString -> Vector a Source #

Convert a ByteString to a Vector.

This function can produce Vectors which do not obey architectural alignment requirements. On x86 this should not be an issue.