Module Obj.EphemeronSource

Ephemeron with arbitrary arity and untyped

Sourcetype obj_t = t

alias for Obj.t

Sourcetype t

an ephemeron cf Ephemeron

Sourceval 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).

Sourceval length : t -> int

return the number of keys

Sourceval get_key : t -> int -> obj_t option
Sourceval get_key_copy : t -> int -> obj_t option
Sourceval set_key : t -> int -> obj_t -> unit
Sourceval unset_key : t -> int -> unit
Sourceval check_key : t -> int -> bool
Sourceval blit_key : t -> int -> t -> int -> int -> unit
Sourceval get_data : t -> obj_t option
Sourceval get_data_copy : t -> obj_t option
Sourceval set_data : t -> obj_t -> unit
Sourceval unset_data : t -> unit
Sourceval check_data : t -> bool
Sourceval blit_data : t -> t -> unit
Sourceval max_ephe_length : int

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