logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Obj - Operations on internal representations of values.

Documentation

       Module Obj
        : sigend

       Operations on internal representations of values.

       Not for the casual user.

       typettyperaw_data = nativeintvalrepr : 'a->tvalobj : t->'avalmagic : 'a->'bvalis_block : t->boolvalis_int : t->boolvaltag : t->intvalsize : t->intvalreachable_words : t->int

       Computes  the  total  size  (in  words,  including  the  headers)  of all heap blocks accessible from the
       argument.  Statically allocated blocks are included.

       Since 4.04

       valfield : t->int->tvalset_field : t->int->t->unit

       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.

       valdouble_field : t->int->floatvalset_double_field : t->int->float->unitvalraw_field : t->int->raw_datavalset_raw_field : t->int->raw_data->unitvalnew_block : int->int->tvaldup : t->tvaladd_offset : t->Int32.t->tvalwith_tag : int->t->tvalfirst_non_constant_constructor_tag : intvallast_non_constant_constructor_tag : intvalforcing_tag : intvalcont_tag : intvallazy_tag : intvalclosure_tag : intvalobject_tag : intvalinfix_tag : intvalforward_tag : intvalno_scan_tag : intvalabstract_tag : intvalstring_tag : intvaldouble_tag : intvaldouble_array_tag : intvalcustom_tag : intvalint_tag : intvalout_of_heap_tag : intvalunaligned_tag : intmoduleExtension_constructor:sigendmoduleEphemeron:sigend

OCamldoc                                           2025-06-12                                            Obj(3o)

Module

       Module   Obj

Name

       Obj - Operations on internal representations of values.

See Also