spool-0.1: Convert between ByteString and Vector.Storable without copying

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 aSource

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.