1Obj.Ephemeron(3) OCaml library Obj.Ephemeron(3)
2
3
4
6 Obj.Ephemeron - no description
7
9 Module Obj.Ephemeron
10
12 Module Ephemeron
13 : sig end
14
15
16
17
18
19
20
21
22
23 Ephemeron with arbitrary arity and untyped
24
25 type obj_t = Obj.t
26
27
28 alias for Obj.t
29
30
31
32 type t
33
34
35 an ephemeron cf Obj.Ephemeron
36
37
38
39
40 val create : int -> t
41
42
43 create n returns an ephemeron with n keys. All the keys and the data
44 are initially empty. The argument n must be between zero and
45 Obj.Ephemeron.max_ephe_length (limits included).
46
47
48
49 val length : t -> int
50
51 return the number of keys
52
53
54
55 val get_key : t -> int -> obj_t option
56
57
58
59
60 val get_key_copy : t -> int -> obj_t option
61
62
63
64
65 val set_key : t -> int -> obj_t -> unit
66
67
68
69
70 val unset_key : t -> int -> unit
71
72
73
74
75 val check_key : t -> int -> bool
76
77
78
79
80 val blit_key : t -> int -> t -> int -> int -> unit
81
82
83
84
85 val get_data : t -> obj_t option
86
87
88
89
90 val get_data_copy : t -> obj_t option
91
92
93
94
95 val set_data : t -> obj_t -> unit
96
97
98
99
100 val unset_data : t -> unit
101
102
103
104
105 val check_data : t -> bool
106
107
108
109
110 val blit_data : t -> t -> unit
111
112
113
114
115 val max_ephe_length : int
116
117 Maximum length of an ephemeron, ie the maximum number of keys an
118 ephemeron could contain
119
120
121
122
123
124OCamldoc 2023-07-20 Obj.Ephemeron(3)