package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 5.2.1

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-5.2.1.tar.gz
sha256=2d0f8090951a97a2c0e5b8a11e90096c0e1791d2e471e4a67f87e3b974044cd0

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.