module Ephemeron: sig .. end
Ephemeron with arbitrary arity and untyped
type obj_t = Obj.t;
alias for Obj.t
type t;
an ephemeron cf Ephemeron
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 Obj.Ephemeron.max_ephe_length
(limits included).
let length: t => int;
return the number of keys
let get_key: (t, int) => option(obj_t);
Same as Ephemeron.K1.get_key
let get_key_copy: (t, int) => option(obj_t);
Same as Ephemeron.K1.get_key_copy
let set_key: (t, int, obj_t) => unit;
Same as Ephemeron.K1.set_key
let unset_key: (t, int) => unit;
Same as Ephemeron.K1.unset_key
let check_key: (t, int) => bool;
Same as Ephemeron.K1.check_key
let blit_key: (t, int, t, int, int) => unit;
Same as Ephemeron.K1.blit_key
let get_data: t => option(obj_t);
Same as Ephemeron.K1.get_data
let get_data_copy: t => option(obj_t);
Same as Ephemeron.K1.get_data_copy
let set_data: (t, obj_t) => unit;
Same as Ephemeron.K1.set_data
let unset_data: t => unit;
Same as Ephemeron.K1.unset_data
let check_data: t => bool;
Same as Ephemeron.K1.check_data
let blit_data: (t, t) => unit;
Same as Ephemeron.K1.blit_data
let max_ephe_length: int;
Maximum length of an ephemeron, ie the maximum number of keys an ephemeron could contain