Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Copies objects out of the OCaml heap where they are not managed by the GC
val malloc : alloc
malloc
is the default memory manager. * * This allocator uses malloc
to allocate
and free to deallocate memory.
copy obj
creates a deep copy of an object outside the OCaml heap. * * The object cannot point to any abstract or custom objects and the copy * cannot be mutated to point to in-heap objects later on. * *
val get : 'a t -> 'a
get ref
returns a refrence to the off-heap object. * *
val delete : 'a t -> unit
delete obj
deletes the off-heap object obj
. * * The object should not be accessed afterwards through other references. * *