Safe Haskell | None |
---|---|
Language | Haskell98 |
- data B
- fromByteString :: sh -> ByteString -> Array B sh Word8
- toByteString :: Array B sh Word8 -> ByteString
Documentation
Strict ByteStrings arrays are represented as ForeignPtr buffers of Word8
fromByteString :: sh -> ByteString -> Array B sh Word8 Source #
O(1). Wrap a ByteString
as an array.
toByteString :: Array B sh Word8 -> ByteString Source #
O(1). Unpack a ByteString
from an array.