base64-bytes-0.1.0.0: Base64 encoding of byte sequences

Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Base64

Synopsis

Documentation

encode :: Bytes -> ByteArray Source #

Encode a byte sequence with base64.

builder :: Bytes -> Builder Source #

Encode a byte sequence with base64 as a builder.

recodeBoundedBuilder :: Nat n -> Builder n -> Builder (4 * Div (n + 2) 3) Source #

Encode a byte sequence with base64. This augments a builder by first playing the original builder to paste the byte sequence and then performing the base64 encoding in-place on the buffer that had been pasted into.