Module Obj
structure Obj = struct ... end
Operations on internal representations of values.
Not for the casual user.
type t
val repr : 'a -> t
val obj : t -> 'a
val magic : 'a -> 'b
val is_block : t -> bool
val is_int : t -> bool
val tag : t -> int
val size : t -> int
val field : t -> int -> t
val set_field : t -> int -> t -> unit
val new_block : int -> int -> t
val dup : t -> t
val truncate : t -> int -> unit
val no_scan_tag : int
val closure_tag : int
val infix_tag : int
val object_tag : int
val abstract_tag : int
val string_tag : int
val double_tag : int
val double_array_tag : int
val final_tag : int
The following two functions are deprecated. Use module Marshal
instead.
val marshal : t -> string
val unmarshal : string -> int -> t * int