Data.ByteVector

mono-traversable-0.10.1.1: Type classes for mapping, folding, and traversing monomorphic containers

Safe Haskell | None
Language | Haskell2010

Data.ByteVector

Description

Provides conversion functions between strict `ByteString`s and storable `Vector`s.

Synopsis

- toByteVector :: ByteString -> Vector Word8
- fromByteVector :: Vector Word8 -> ByteString

# Documentation

toByteVector :: ByteString -> Vector Word8

Convert a `ByteString` into a storable `Vector`.

Since 0.6.1

fromByteVector :: Vector Word8 -> ByteString

Convert a storable `Vector` into a `ByteString`.

Since 0.6.1