| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Streamly.External.ByteString
Synopsis
- toArray :: ByteString -> Array Word8
- fromArray :: Array Word8 -> ByteString
- read :: Monad m => Unfold m ByteString Word8
- writeN :: MonadIO m => Int -> Fold m Word8 ByteString
- write :: MonadIO m => Fold m Word8 ByteString
Documentation
toArray :: ByteString -> Array Word8 Source #
Convert a ByteString to an array of Word8. This function unwraps the
 ByteString and wraps it with Array constructors and hence the operation
 is performed in constant time.
fromArray :: Array Word8 -> ByteString Source #
Convert an array of Word8 to a ByteString. This function unwraps the
 Array and wraps it with ByteString constructors and hence the operation
 is performed in constant time.
read :: Monad m => Unfold m ByteString Word8 Source #
Unfold a strict ByteString to a stream of Word8.