|
@@ -1,10 +1,34 @@
|
|
|
(* Auto-generated from "tmp_biniou.atd" *)
|
|
|
|
|
|
|
|
|
+type rc_name = Tmp_biniou_t.rc_name
|
|
|
+
|
|
|
type rc_entry = Tmp_biniou_t.rc_entry = { commands: (string * int) }
|
|
|
|
|
|
-type tmp_file = Tmp_biniou_t.tmp_file = { rc: rc_entry list; daemon: int }
|
|
|
+type tmp_file = Tmp_biniou_t.tmp_file = {
|
|
|
+ rc: (rc_name * (rc_entry list)) list;
|
|
|
+ daemon: int
|
|
|
+}
|
|
|
|
|
|
+let rc_name_tag = Bi_io.string_tag
|
|
|
+let write_untagged_rc_name = (
|
|
|
+ Bi_io.write_untagged_string
|
|
|
+)
|
|
|
+let write_rc_name ob x =
|
|
|
+ Bi_io.write_tag ob Bi_io.string_tag;
|
|
|
+ write_untagged_rc_name ob x
|
|
|
+let string_of_rc_name ?(len = 1024) x =
|
|
|
+ let ob = Bi_outbuf.create len in
|
|
|
+ write_rc_name ob x;
|
|
|
+ Bi_outbuf.contents ob
|
|
|
+let get_rc_name_reader = (
|
|
|
+ Ag_ob_run.get_string_reader
|
|
|
+)
|
|
|
+let read_rc_name = (
|
|
|
+ Ag_ob_run.read_string
|
|
|
+)
|
|
|
+let rc_name_of_string ?pos s =
|
|
|
+ read_rc_name (Bi_inbuf.from_string ?pos s)
|
|
|
let rc_entry_tag = Bi_io.record_tag
|
|
|
let write_untagged_rc_entry : Bi_outbuf.t -> rc_entry -> unit = (
|
|
|
fun ob x ->
|
|
@@ -141,13 +165,110 @@ let read__1 = (
|
|
|
)
|
|
|
let _1_of_string ?pos s =
|
|
|
read__1 (Bi_inbuf.from_string ?pos s)
|
|
|
+let _2_tag = Bi_io.array_tag
|
|
|
+let write_untagged__2 = (
|
|
|
+ Ag_ob_run.write_untagged_list
|
|
|
+ Bi_io.tuple_tag
|
|
|
+ (
|
|
|
+ fun ob x ->
|
|
|
+ Bi_vint.write_uvint ob 2;
|
|
|
+ (
|
|
|
+ let x, _ = x in (
|
|
|
+ write_rc_name
|
|
|
+ ) ob x
|
|
|
+ );
|
|
|
+ (
|
|
|
+ let _, x = x in (
|
|
|
+ fun ob x ->
|
|
|
+ Bi_io.write_tag ob Bi_io.tuple_tag;
|
|
|
+ Bi_vint.write_uvint ob 1;
|
|
|
+ (
|
|
|
+ let x = x in (
|
|
|
+ write__1
|
|
|
+ ) ob x
|
|
|
+ );
|
|
|
+ ) ob x
|
|
|
+ );
|
|
|
+ )
|
|
|
+)
|
|
|
+let write__2 ob x =
|
|
|
+ Bi_io.write_tag ob Bi_io.array_tag;
|
|
|
+ write_untagged__2 ob x
|
|
|
+let string_of__2 ?(len = 1024) x =
|
|
|
+ let ob = Bi_outbuf.create len in
|
|
|
+ write__2 ob x;
|
|
|
+ Bi_outbuf.contents ob
|
|
|
+let get__2_reader = (
|
|
|
+ Ag_ob_run.get_list_reader (
|
|
|
+ fun tag ->
|
|
|
+ if tag <> 20 then Ag_ob_run.read_error () else
|
|
|
+ fun ib ->
|
|
|
+ let len = Bi_vint.read_uvint ib in
|
|
|
+ if len < 2 then Ag_ob_run.missing_tuple_fields len [ 0; 1 ];
|
|
|
+ let x0 =
|
|
|
+ (
|
|
|
+ read_rc_name
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ let x1 =
|
|
|
+ (
|
|
|
+ fun ib ->
|
|
|
+ if Bi_io.read_tag ib <> 20 then Ag_ob_run.read_error_at ib;
|
|
|
+ let len = Bi_vint.read_uvint ib in
|
|
|
+ if len < 1 then Ag_ob_run.missing_tuple_fields len [ 0 ];
|
|
|
+ let x0 =
|
|
|
+ (
|
|
|
+ read__1
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ for i = 1 to len - 1 do Bi_io.skip ib done;
|
|
|
+ (x0)
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ for i = 2 to len - 1 do Bi_io.skip ib done;
|
|
|
+ (x0, x1)
|
|
|
+ )
|
|
|
+)
|
|
|
+let read__2 = (
|
|
|
+ Ag_ob_run.read_list (
|
|
|
+ fun tag ->
|
|
|
+ if tag <> 20 then Ag_ob_run.read_error () else
|
|
|
+ fun ib ->
|
|
|
+ let len = Bi_vint.read_uvint ib in
|
|
|
+ if len < 2 then Ag_ob_run.missing_tuple_fields len [ 0; 1 ];
|
|
|
+ let x0 =
|
|
|
+ (
|
|
|
+ read_rc_name
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ let x1 =
|
|
|
+ (
|
|
|
+ fun ib ->
|
|
|
+ if Bi_io.read_tag ib <> 20 then Ag_ob_run.read_error_at ib;
|
|
|
+ let len = Bi_vint.read_uvint ib in
|
|
|
+ if len < 1 then Ag_ob_run.missing_tuple_fields len [ 0 ];
|
|
|
+ let x0 =
|
|
|
+ (
|
|
|
+ read__1
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ for i = 1 to len - 1 do Bi_io.skip ib done;
|
|
|
+ (x0)
|
|
|
+ ) ib
|
|
|
+ in
|
|
|
+ for i = 2 to len - 1 do Bi_io.skip ib done;
|
|
|
+ (x0, x1)
|
|
|
+ )
|
|
|
+)
|
|
|
+let _2_of_string ?pos s =
|
|
|
+ read__2 (Bi_inbuf.from_string ?pos s)
|
|
|
let tmp_file_tag = Bi_io.record_tag
|
|
|
let write_untagged_tmp_file : Bi_outbuf.t -> tmp_file -> unit = (
|
|
|
fun ob x ->
|
|
|
Bi_vint.write_uvint ob 2;
|
|
|
Bi_outbuf.add_char4 ob '\128' '\000' 'c' '\177';
|
|
|
(
|
|
|
- write__1
|
|
|
+ write__2
|
|
|
) ob x.rc;
|
|
|
Bi_outbuf.add_char4 ob '\152' '\163' '\253' '\132';
|
|
|
(
|
|
@@ -174,7 +295,7 @@ let get_tmp_file_reader = (
|
|
|
| 25521 ->
|
|
|
field_rc := (
|
|
|
(
|
|
|
- read__1
|
|
|
+ read__2
|
|
|
) ib
|
|
|
);
|
|
|
bits0 := !bits0 lor 0x1;
|
|
@@ -207,7 +328,7 @@ let read_tmp_file = (
|
|
|
| 25521 ->
|
|
|
field_rc := (
|
|
|
(
|
|
|
- read__1
|
|
|
+ read__2
|
|
|
) ib
|
|
|
);
|
|
|
bits0 := !bits0 lor 0x1;
|