Base64.T
val encode_buf : ?offset:int -> ?len:int -> Stdlib.Buffer.t -> bytes -> int
Takes an input bytes, and writes the encoded string to Buffer.t.
bytes
Buffer.t
the offset of input which the encoder should start reading from.
the length of input which the encoder should read.
the number of bytes written to Buffer.t.
val decode_buf : ?offset:int -> ?len:int -> Stdlib.Buffer.t -> string -> int
Takes an input string, and writes the decoded bytes to Buffer.t.
string
the offset of input which the decoder should start reading from.
the length of input which the decoder should read.
val encode : ?offset:int -> ?len:int -> bytes -> string
Takes an input bytes, and returns the encoded string.
val decode : ?offset:int -> ?len:int -> string -> bytes
Takes an input string, and returns the decoded bytes.