jon.recoil.org

Module Obj.EphemeronSource

Ephemeron with arbitrary arity and untyped

Sourcetype obj_t = Stdlib.Obj.t

alias for Obj.t

Sourcetype t

an ephemeron cf Ephemeron

Sourceval create : int -> Stdlib.Obj.Ephemeron.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).

Sourceval length : Stdlib.Obj.Ephemeron.t -> int

return the number of keys

Sourceval get_key_copy : Stdlib.Obj.Ephemeron.t -> int -> Stdlib.Obj.Ephemeron.obj_t option
Sourceval unset_key : Stdlib.Obj.Ephemeron.t -> int -> unit
Sourceval check_key : Stdlib.Obj.Ephemeron.t -> int -> bool
Sourceval blit_key : Stdlib.Obj.Ephemeron.t -> int -> Stdlib.Obj.Ephemeron.t -> int -> int -> unit
Sourceval unset_data : Stdlib.Obj.Ephemeron.t -> unit
Sourceval check_data : Stdlib.Obj.Ephemeron.t -> bool
Sourceval max_ephe_length : int

Maximum length of an ephemeron, ie the maximum number of keys an ephemeron could contain