package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 5.0.0

Install

Dune Dependency

Authors

Maintainers

Sources

5.0.0.tar.gz
sha256=72fa3d0ba19b82fcb9e6c62e0090b9d22e5905c4be0f94faf56904a9377a9e5b

doc/stdlib/Stdlib/Obj/Ephemeron/index.html

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

OCaml

Innovation. Community. Security.