streaming-base64-0.1.0.0: Streaming conversion from/to base64

Safe HaskellNone
LanguageHaskell2010

Streaming.Base64

Description

This module should be imported as qualified.

Synopsis

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.