License | BSD-style |
---|---|
Maintainer | Foundation |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Module to convert bytestring's ByteString type
- fromByteString :: ByteString -> UArray Word8
- toByteString :: UArray Word8 -> ByteString
Documentation
fromByteString :: ByteString -> UArray Word8 Source #
Convert a ByteString to a UArray Word8, without re-allocating or copying anything
toByteString :: UArray Word8 -> ByteString Source #
Convert a UArray Word8 to ByteString
all the bytes are copied to a brand new memory chunk