package multibase

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type alphabet = {
  1. emap : int array;
  2. dmap : int array;
}
type sub = string * int * int
val (//) : int -> int -> int
val unsafe_get_uint8 : string -> int -> int
val unsafe_set_uint8 : bytes -> int -> int -> unit
val unsafe_set_uint16 : bytes -> int -> int -> unit
val unsafe_get_uint16 : string -> int -> int
val swap16 : int -> int
val none : int
val make_alphabet : string -> alphabet
val length_alphabet : alphabet -> int
val alphabet : alphabet -> string
val default_alphabet : alphabet
val default_lower : alphabet
val extended_hex : alphabet
val hex_lower : alphabet
val unsafe_set_be_uint16 : bytes -> int -> int -> unit
exception Out_of_bounds
exception Too_much_input
val get_uint8 : string -> int -> int
val padding : int
val error_msgf : ('a, unit, string, ('b, [> `Msg of string ]) result) format4 -> 'a
val encode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string ]) result
val encode_string : ?pad:bool -> ?alphabet:alphabet -> string -> string
val encode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string * int * int, [> `Msg of string ]) result
val encode_exn : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> string
module I63 : sig ... end
val decode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string ]) result
val decode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string * int * int, [> `Msg of string ]) result
val decode_exn : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> string
OCaml

Innovation. Community. Security.