2 ABC primitive data type.
4 Provide the type of ABC primitive data type and byte encodeing function.
7 @see <http://www.adobe.com/devnet/actionscript/articles/avm2overview.pdf> AVM2 Overview(pdf)
10 (** the type of a primitive data type *)
13 exception Out_of_range
15 (** {6 Create data type }*)
19 @raise InvalidArgumnet If n > 0xFF or n < 0. *)
24 @raise InvalidArgumnet If n > 0xFFFF or n < 0. *)
42 (** [label l] create label. This label is refered by [lable_ref l].
44 This value is removed when encode. *)
45 val label : Label.t -> t
47 (** [label_ref l] refer to [label l] position.
49 This value become s24 when encode. *)
50 val label_ref : Label.t -> t
54 val find : map -> Label.t -> address
55 val backpatch : int -> (address -> map -> int list) -> t
60 [to_int_list xs] encode [xs] to [int list].
62 val to_int_list : t list -> int list
65 [output_bytes ch xs] output encoded [xs] to [ch]
67 val output_bytes: out_channel -> t list -> unit