Module Obj.Ephemeron
Ephemeron with arbitrary arity and untyped
ocaml
type obj_t = treasonml
type obj_t = t;alias for Obj.t
ocaml
type treasonml
type t;an ephemeron cf Ephemeron
ocaml
val create : int -> treasonml
let create: int => t;create n returns an ephemeron with n keys. All the keys and the data are initially empty. The argument n must be between zero and max_ephe_length (limits included).
ocaml
val length : t -> intreasonml
let length: t => int;return the number of keys
ocaml
val get_key : t -> int -> obj_t optionreasonml
let get_key: t => int => option(obj_t);ocaml
val get_key_copy : t -> int -> obj_t optionreasonml
let get_key_copy: t => int => option(obj_t);ocaml
val set_key : t -> int -> obj_t -> unitreasonml
let set_key: t => int => obj_t => unit;ocaml
val unset_key : t -> int -> unitreasonml
let unset_key: t => int => unit;ocaml
val check_key : t -> int -> boolreasonml
let check_key: t => int => bool;ocaml
val blit_key : t -> int -> t -> int -> int -> unitreasonml
let blit_key: t => int => t => int => int => unit;ocaml
val get_data : t -> obj_t optionreasonml
let get_data: t => option(obj_t);ocaml
val get_data_copy : t -> obj_t optionreasonml
let get_data_copy: t => option(obj_t);ocaml
val set_data : t -> obj_t -> unitreasonml
let set_data: t => obj_t => unit;ocaml
val unset_data : t -> unitreasonml
let unset_data: t => unit;ocaml
val check_data : t -> boolreasonml
let check_data: t => bool;ocaml
val blit_data : t -> t -> unitreasonml
let blit_data: t => t => unit;ocaml
val max_ephe_length : intreasonml
let max_ephe_length: int;Maximum length of an ephemeron, ie the maximum number of keys an ephemeron could contain