package batteries
Install
Dune Dependency
Authors
Maintainers
Sources
md5=1fd7bddce07cf5d244fc9427f7b5e4d4
sha512=c0f2a0fdc8253e0ea999d8d4c58bfbf32b18d251a2e1d9656bf279de5f01a33e9aabac3af4d95f465f8b671e7711ebd37218043face233340a0c11b08fa62f78
doc/batteries.unthreaded/BatBase64/index.html
Module BatBase64
Source
Base64 codec.
8-bit characters are encoded into 6-bit ones using ASCII lookup tables. Default tables maps 0..63 values on characters A-Z, a-z, 0-9, '+' and '/' (in that order).
@documents Base64
This exception is raised when reading an invalid character from a base64 input.
This exception is raised if the encoding or decoding table size is not correct.
An encoding table maps integers 0..63 to the corresponding char.
A decoding table maps chars 0..255 to the corresponding 0..63 value or -1 if the char is not accepted.
Encode a string into Base64.
Decode a string encoded into Base64, raise Invalid_char
if a character in the input string is not a valid one.
Generic base64 encoding over an output.
Generic base64 decoding over an input.
Create a valid decoding table from an encoding one.