···62626363 @raise if Invalid_argument [s] is not a valid Base64 string. *)
64646565-val decode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [ `Msg of string ]) result
6565+val decode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [> `Msg of string ]) result
6666(** Same as {!decode_exn} but it returns a result type instead to raise an
6767 exception. Then, it returns a {!sub} string. Decoded input [(str, off, len)]
6868 will starting to [off] and will have [len] bytes - by this way, we ensure to
6969 allocate only one time result. *)
70707171-val decode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [ `Msg of string ]) result
7171+val decode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string ]) result
7272(** Same as {!decode_exn}, but returns an explicit error message {!result} if it fails. *)
73737474-val encode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [ `Msg of string]) result
7474+val encode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string]) result
7575(** [encode s] encodes the string [s] into base64. If [pad] is false, no
7676 trailing padding is added. [pad] defaults to [true], and [alphabet] to
7777 {!default_alphabet}.
···8383 trailing padding is added. [pad] defaults to [true], and [alphabet] to
8484 {!default_alphabet}. *)
85858686-val encode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [ `Msg of string]) result
8686+val encode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [> `Msg of string]) result
8787(** Same as {!encode} but return a {!sub}-string instead a plain result. By this
8888 way, we ensure to allocate only one time result. *)
8989