Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module should be imported as qualified.
- encode :: Monad m => ByteString m r -> Stream (Of Word8) m r
- decode :: Monad m => Stream (Of Word8) m r -> ByteString m (Either Base64Exception r)
- data Base64Exception = PrematureEndOfInput
Documentation
encode :: Monad m => ByteString m r -> Stream (Of Word8) m r Source #
Encode a binary stream in base64 format.
Output will be padded to be always a multiple of 4 bytes in length.
decode :: Monad m => Stream (Of Word8) m r -> ByteString m (Either Base64Exception r) Source #
Decode base64-encoded data into a binary stream.