Stdlib.ObjOperations on internal representations of values.
Not for the casual user.
val repr : 'a -> tval obj : t -> 'aval is_block : t -> boolval is_int : t -> boolval tag : t -> intval size : t -> intval reachable_words : t -> intComputes the total size (in words, including the headers) of all heap blocks accessible from the argument. Statically allocated blocks are included.
When using flambda:
set_field MUST NOT be called on immutable blocks. (Blocks allocated in C stubs, or with new_block below, are always considered mutable.)
The same goes for set_double_field.
For experts only: set_field et al can be made safe by first wrapping the block in Sys.opaque_identity, so any information about its contents will not be propagated.
val double_field : t -> int -> floatval set_double_field : t -> int -> float -> unitval new_block : int -> int -> tmodule Extension_constructor : sig ... endmodule Ephemeron : sig ... endEphemeron with arbitrary arity and untyped