Transform a number of bytes pointed by src to base64 binary representation in dst
The destination memory need to be of correct size, otherwise it will lead to really bad things.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulememory-0.18.0Haskell2010
Low-level Base64 encoding and decoding.
If you just want to encode or decode some bytes, you probably want to use the Data.ByteArray.Encoding module.
Transform a number of bytes pointed by src to base64 binary representation in dst
The destination memory need to be of correct size, otherwise it will lead to really bad things.
Transform a number of bytes pointed by src to, URL-safe base64 binary
representation in dst. The result will be either padded or unpadded,
depending on the boolean padded argument.
The destination memory need to be of correct size, otherwise it will lead to really bad things.
Get the length needed for the destination buffer for a base64 decoding.
if the length is not a multiple of 4, Nothing is returned
Get the length needed for the destination buffer for an unpadded base64 decoding.
If the length of the encoded string is a multiple of 4, plus one, Nothing is returned. Any other value can be valid without padding.
convert from base64 in src to binary in dst, using the number of bytes specified
the user should use unBase64Length to compute the correct length, or check that the length specification is proper. no check is done here.