123456789101112131415161718192021open!Importtypet=Stdlib.Obj.ttyperaw_data=Stdlib.Obj.raw_dataexternalmagic:(_[@local_opt])->(_[@local_opt])="%identity"externalrepr:(_[@local_opt])->(t[@local_opt])="%identity"externalobj:(t[@local_opt])->(_[@local_opt])="%identity"(* The result doesn't need to be marked local because the data is copied into a fresh
nativeint block regardless. *)externalraw_field:(t[@local_opt])->int->raw_data="caml_obj_raw_field"externalset_raw_field:(t[@local_opt])->int->raw_data->unit="caml_obj_set_raw_field"externaltag:(t[@local_opt])->int="caml_obj_tag"[@@noalloc]