Module Kxclib.Base64

module type Config = sig ... end
module type T = sig ... end
exception Invalid_base64_padding of [ `invalid_char_with_position of char * int | `invalid_padding_length of int ]
module Make (C : Config) : T
module Config_rfc4648_relaxed : sig ... end
include sig ... end
val encode_buf : ?offset:int -> ?len:int -> Stdlib.Buffer.t -> bytes -> int

Takes an input bytes, and writes the encoded string to Buffer.t.

  • parameter offset

    the offset of input which the encoder should start reading from.

  • parameter len

    the length of input which the encoder should read.

  • returns

    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.

  • parameter offset

    the offset of input which the decoder should start reading from.

  • parameter len

    the length of input which the decoder should read.

  • returns

    the number of bytes written to Buffer.t.

val encode : ?offset:int -> ?len:int -> bytes -> string

Takes an input bytes, and returns the encoded string.

  • parameter offset

    the offset of input which the encoder should start reading from.

  • parameter len

    the length of input which the encoder should read.

val decode : ?offset:int -> ?len:int -> string -> bytes

Takes an input string, and returns the decoded bytes.

  • parameter offset

    the offset of input which the decoder should start reading from.

  • parameter len

    the length of input which the decoder should read.

module Config_rfc4648_url_relaxed : sig ... end
module Url : sig ... end