1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
2001-12-07 05:41:02 -08:00
|
|
|
(* under the terms of the GNU Library General Public License, with *)
|
|
|
|
(* the special exception on linking described in file ../LICENSE. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
2001-10-26 15:38:48 -07:00
|
|
|
(** Operations on internal representations of values.
|
1995-08-09 06:15:01 -07:00
|
|
|
|
2001-10-26 15:38:48 -07:00
|
|
|
Not for the casual user.
|
|
|
|
*)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
type t
|
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
external repr : 'a -> t = "%identity"
|
1997-03-22 12:27:26 -08:00
|
|
|
external obj : t -> 'a = "%identity"
|
1995-05-05 03:05:18 -07:00
|
|
|
external magic : 'a -> 'b = "%identity"
|
|
|
|
external is_block : t -> bool = "obj_is_block"
|
1999-12-12 08:29:31 -08:00
|
|
|
external is_int : t -> bool = "%obj_is_int"
|
1995-06-18 07:45:56 -07:00
|
|
|
external tag : t -> int = "obj_tag"
|
1995-07-27 10:44:04 -07:00
|
|
|
external size : t -> int = "%obj_size"
|
2000-04-02 18:57:52 -07:00
|
|
|
external field : t -> int -> t = "%obj_field"
|
|
|
|
external set_field : t -> int -> t -> unit = "%obj_set_field"
|
2001-09-06 01:52:32 -07:00
|
|
|
external new_block : int -> int -> t = "obj_block"
|
1998-06-24 12:22:26 -07:00
|
|
|
external dup : t -> t = "obj_dup"
|
2001-09-06 01:52:32 -07:00
|
|
|
external truncate : t -> int -> unit = "obj_truncate"
|
1997-10-28 05:17:11 -08:00
|
|
|
|
1998-10-01 05:34:32 -07:00
|
|
|
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
|
|
|
|
|
2001-10-26 15:38:48 -07:00
|
|
|
(** The following two functions are deprecated. Use module {!Marshal} instead. *)
|
1997-10-28 05:17:11 -08:00
|
|
|
|
|
|
|
val marshal : t -> string
|
|
|
|
val unmarshal : string -> int -> t * int
|
1998-10-01 05:34:32 -07:00
|
|
|
|