text stringlengths 0 601k |
|---|
type mixed = ( mixed_record Atdgen_runtime . Util . ocaml_array * mixed_record Atdgen_runtime . Util . ocaml_array ) list |
type test = { x0 : int option ; x1 : float option ; x2 : mixed ; x3 : mixed_record list ; x4 : Int64 . t } |
type tup = ( int * test ) |
type test_field_prefix = { theprefix_hello : bool ; theprefix_world : int } |
type ' a generic = { x294623 : int } |
type specialized = string generic |
type some_record = { some_field : int } |
type precision = { sqrt2_5 : float ; small_2 : float ; large_2 : float } |
type p ' ' = int p ' |
type option_validation = int option |
type id = [ ` Id of string ] |
type json_map = ( id * int ) list |
type intopt = int option |
type int_assoc_list = ( string * int ) list |
type int_assoc_array = ( string * int ) Atdgen_runtime . Util . ocaml_array |
type hello = [ ` Hello of string | ` World ] |
type floats = { f32 : float ; f64 : float } |
type extended_tuple = ( int * float * bool * int option * string * string list ) |
type extended = { b0x : int ; b1x : bool ; b2x : string ; b3x : string option ; b4x : string option ; b5x : float } |
type base_tuple = ( int * float ) |
type base = { b0 : int ; b1 : bool } |
type ' a array = ' a Atdgen_runtime . Util . ocaml_array |
type ' a abs3 = ' a list |
type ' a abs2 = ' a list |
type ' a abs1 = ' a list |
let write_untagged__19 _a_tag write_untagged__a write__a = ( Atdgen_runtime . Ob_run . write_untagged_list _a_tag ( write_untagged__a ) ) |
let write__19 _a_tag write_untagged__a write__a ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__19 _a_tag write_untagged__a write__a ob x |
let string_of__19 _a_tag write_untagged__a write__a ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__19 _a_tag write_untagged__a write__a ob x ; Bi_outbuf . contents ob |
let get__19_reader get__a_reader read__a = ( Atdgen_runtime . Ob_run . get_list_reader ( get__a_reader ) ) |
let read__19 get__a_reader read__a = ( Atdgen_runtime . Ob_run . read_list ( get__a_reader ) ) |
let _19_of_string get__a_reader read__a ? pos s = read__19 get__a_reader read__a ( Bi_inbuf . from_string ? pos s ) |
let rec p ' _tag = Bi_io . variant_tag fun ob x -> match x with | A -> Bi_outbuf . add_char4 ob ' \ 000 ' ' \ 000 ' ' \ 000 ' ' A ' | Bb x -> Bi_outbuf . add_char4 ob ' \ 128 ' ' \ 000 ' ' 9 ' ' \ 224 ' ; ( write_p ' _a_tag write_untagged__a write__a ) ob x | Ccccc x -> Bi_outbuf . add_char4 ob ' \ 213 ' ' \ 148 ' ' s ... |
let rec get_p ' _reader get__a_reader read__a = ( fun tag -> if tag <> 23 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> Bi_io . read_hashtag ib ( fun ib h has_arg -> match h , has_arg with | 65 , false -> ( A : ' a p ' ) | 14816 , true -> ( Bb ( ( read_p ' get__a_reader read__a ) ib ) : ' a p ' ) | - 711... |
let rec p_tag = Bi_io . variant_tag fun ob x -> match x with | ` A -> Bi_outbuf . add_char4 ob ' \ 000 ' ' \ 000 ' ' \ 000 ' ' A ' | ` B x -> Bi_outbuf . add_char4 ob ' \ 128 ' ' \ 000 ' ' \ 000 ' ' B ' ; ( write_r ) ob x | ` C -> Bi_outbuf . add_char4 ob ' \ 000 ' ' \ 000 ' ' \ 000 ' ' C ' ) Bi_io . write_tag ob Bi_io... |
let rec get_p_reader = ( fun tag -> if tag <> 23 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> Bi_io . read_hashtag ib ( fun ib h has_arg -> match h , has_arg with | 65 , false -> ` A | 66 , true -> ( ` B ( ( read_r ) ib ) ) | 67 , false -> ` C | _ -> Atdgen_runtime . Ob_run . unsupported_variant h has_a... |
let rec _20_tag = Bi_io . num_variant_tag Atdgen_runtime . Ob_run . write_untagged_option ( write_poly _a_tag write_untagged__a write__a _b_tag write_untagged__b write__b ) Bi_io . write_tag ob Bi_io . num_variant_tag ; write_untagged__20 _a_tag write_untagged__a write__a _b_tag write_untagged__b write__b ob x let ob =... |
let rec get__20_reader get__a_reader read__a get__b_reader read__b = ( fun tag -> if tag <> 22 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> match Char . code ( Bi_inbuf . read_char ib ) with | 0 -> None | 0x80 -> Some ( ( read_poly get__a_reader read__a get__b_reader read__b ) ib ) | _ -> Atdgen_runtime... |
let rec _2_tag = Bi_io . array_tag Atdgen_runtime . Ob_run . write_untagged_list test_variant_tag ( write_untagged_test_variant ) Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__2 ob x let ob = Bi_outbuf . create len in write__2 ob x ; Bi_outbuf . contents ob fun ob x -> match x with | ` Case1 -> Bi_outbuf . a... |
let rec get__2_reader tag = ( Atdgen_runtime . Ob_run . get_list_reader ( get_test_variant_reader ) Atdgen_runtime . Ob_run . read_list ( get_test_variant_reader ) read__2 ( Bi_inbuf . from_string ? pos s ) fun tag -> if tag <> 23 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> Bi_io . read_hashtag ib ( fu... |
let rec _1_tag = Bi_io . variant_tag fun ob x -> match x with | A -> Bi_outbuf . add_char4 ob ' \ 000 ' ' \ 000 ' ' \ 000 ' ' A ' | Bb x -> Bi_outbuf . add_char4 ob ' \ 128 ' ' \ 000 ' ' 9 ' ' \ 224 ' ; ( write__1 ) ob x | Ccccc x -> Bi_outbuf . add_char4 ob ' \ 213 ' ' \ 148 ' ' s ' ' \ 003 ' ; ( Bi_io . write_svint )... |
let rec get__1_reader = ( fun tag -> if tag <> 23 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> Bi_io . read_hashtag ib ( fun ib h has_arg -> match h , has_arg with | 65 , false -> ( A : _ p ' ) | 14816 , true -> ( Bb ( ( read__1 ) ib ) : _ p ' ) | - 711691517 , true -> ( Ccccc ( ( Atdgen_runtime . Ob_ru... |
let write_untagged_validated_string_check = ( Bi_io . write_untagged_string ) |
let write_validated_string_check ob x = Bi_io . write_tag ob Bi_io . string_tag ; write_untagged_validated_string_check ob x |
let string_of_validated_string_check ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_validated_string_check ob x ; Bi_outbuf . contents ob |
let get_validated_string_check_reader = ( Atdgen_runtime . Ob_run . get_string_reader ) |
let read_validated_string_check = ( Atdgen_runtime . Ob_run . read_string ) |
let validated_string_check_of_string ? pos s = read_validated_string_check ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__31 = ( Atdgen_runtime . Ob_run . write_untagged_list Bi_io . string_tag ( Bi_io . write_untagged_string ) ) |
let write__31 ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__31 ob x |
let string_of__31 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__31 ob x ; Bi_outbuf . contents ob |
let get__31_reader = ( Atdgen_runtime . Ob_run . get_list_reader ( Atdgen_runtime . Ob_run . get_string_reader ) ) |
let read__31 = ( Atdgen_runtime . Ob_run . read_list ( Atdgen_runtime . Ob_run . get_string_reader ) ) |
let _31_of_string ? pos s = read__31 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_validate_me = ( write_untagged__31 ) |
let write_validate_me ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged_validate_me ob x |
let string_of_validate_me ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_validate_me ob x ; Bi_outbuf . contents ob |
let get_validate_me_reader = ( get__31_reader ) |
let read_validate_me = ( read__31 ) |
let validate_me_of_string ? pos s = read_validate_me ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_val1 : Bi_outbuf . t -> val1 -> unit = ( fun ob x -> Bi_vint . write_uvint ob 1 ; Bi_outbuf . add_char4 ob ' \ 207 ' ' \ 131 ' ' e ' ' i ' ; ( Bi_io . write_svint ) ob x . val1_x ; ) |
let write_val1 ob x = Bi_io . write_tag ob Bi_io . record_tag ; write_untagged_val1 ob x |
let string_of_val1 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_val1 ob x ; Bi_outbuf . contents ob |
let get_val1_reader = ( fun tag -> if tag <> 21 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let field_val1_x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let bits0 = ref 0 in let len = Bi_vint . read_uvint ib in for i = 1 to len do match Bi_io . read_field_hashtag ib with | - 813472407 -> f... |
let read_val1 = ( fun ib -> if Bi_io . read_tag ib <> 21 then Atdgen_runtime . Ob_run . read_error_at ib ; let field_val1_x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let bits0 = ref 0 in let len = Bi_vint . read_uvint ib in for i = 1 to len do match Bi_io . read_field_hashtag ib with | - 813472407 -> fie... |
let val1_of_string ? pos s = read_val1 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__16 = ( Atdgen_runtime . Ob_run . write_untagged_option ( write_val1 ) ) |
let write__16 ob x = Bi_io . write_tag ob Bi_io . num_variant_tag ; write_untagged__16 ob x |
let string_of__16 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__16 ob x ; Bi_outbuf . contents ob |
let get__16_reader = ( fun tag -> if tag <> 22 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> match Char . code ( Bi_inbuf . read_char ib ) with | 0 -> None | 0x80 -> Some ( ( read_val1 ) ib ) | _ -> Atdgen_runtime . Ob_run . read_error_at ib ) |
let read__16 = ( fun ib -> if Bi_io . read_tag ib <> 22 then Atdgen_runtime . Ob_run . read_error_at ib ; match Char . code ( Bi_inbuf . read_char ib ) with | 0 -> None | 0x80 -> Some ( ( read_val1 ) ib ) | _ -> Atdgen_runtime . Ob_run . read_error_at ib ) |
let _16_of_string ? pos s = read__16 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_val2 : Bi_outbuf . t -> val2 -> unit = ( fun ob x -> let len = ref 1 in let x_val2_y = x . val2_y in if x_val2_y != None then incr len ; Bi_vint . write_uvint ob ! len ; Bi_outbuf . add_char4 ob ' \ 207 ' ' \ 132 ' ' ' ' \ ' \ 170 ' ; ( write_val1 ) ob x . val2_x ; ( match x_val2_y with None -> ( ) |... |
let write_val2 ob x = Bi_io . write_tag ob Bi_io . record_tag ; write_untagged_val2 ob x |
let string_of_val2 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_val2 ob x ; Bi_outbuf . contents ob |
let get_val2_reader = ( fun tag -> if tag <> 21 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let field_val2_x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_val2_y = ref ( None ) in let bits0 = ref 0 in let len = Bi_vint . read_uvint ib in for i = 1 to len do match Bi_io . read_field... |
let read_val2 = ( fun ib -> if Bi_io . read_tag ib <> 21 then Atdgen_runtime . Ob_run . read_error_at ib ; let field_val2_x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_val2_y = ref ( None ) in let bits0 = ref 0 in let len = Bi_vint . read_uvint ib in for i = 1 to len do match Bi_io . read_field_h... |
let val2_of_string ? pos s = read_val2 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__29 = ( Atdgen_runtime . Ob_run . write_untagged_list Bi_io . float64_tag ( Bi_io . write_untagged_float64 ) ) |
let write__29 ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__29 ob x |
let string_of__29 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__29 ob x ; Bi_outbuf . contents ob |
let get__29_reader = ( Atdgen_runtime . Ob_run . get_list_reader ( Atdgen_runtime . Ob_run . get_float64_reader ) ) |
let read__29 = ( Atdgen_runtime . Ob_run . read_list ( Atdgen_runtime . Ob_run . get_float64_reader ) ) |
let _29_of_string ? pos s = read__29 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_unixtime_list = ( write_untagged__29 ) |
let write_unixtime_list ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged_unixtime_list ob x |
let string_of_unixtime_list ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_unixtime_list ob x ; Bi_outbuf . contents ob |
let get_unixtime_list_reader = ( get__29_reader ) |
let read_unixtime_list = ( read__29 ) |
let unixtime_list_of_string ? pos s = read_unixtime_list ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__3 = ( Atdgen_runtime . Ob_run . write_untagged_option ( Bi_io . write_svint ) ) |
let write__3 ob x = Bi_io . write_tag ob Bi_io . num_variant_tag ; write_untagged__3 ob x |
let string_of__3 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__3 ob x ; Bi_outbuf . contents ob |
let get__3_reader = ( fun tag -> if tag <> 22 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> match Char . code ( Bi_inbuf . read_char ib ) with | 0 -> None | 0x80 -> Some ( ( Atdgen_runtime . Ob_run . read_int ) ib ) | _ -> Atdgen_runtime . Ob_run . read_error_at ib ) |
let read__3 = ( fun ib -> if Bi_io . read_tag ib <> 22 then Atdgen_runtime . Ob_run . read_error_at ib ; match Char . code ( Bi_inbuf . read_char ib ) with | 0 -> None | 0x80 -> Some ( ( Atdgen_runtime . Ob_run . read_int ) ib ) | _ -> Atdgen_runtime . Ob_run . read_error_at ib ) |
let _3_of_string ? pos s = read__3 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_date = ( fun ob x -> Bi_vint . write_uvint ob 3 ; ( let x , _ , _ = x in ( Bi_io . write_svint ) ob x ) ; ( let _ , x , _ = x in ( write__3 ) ob x ) ; ( let _ , _ , x = x in ( write__3 ) ob x ) ; ) |
let write_date ob x = Bi_io . write_tag ob Bi_io . tuple_tag ; write_untagged_date ob x |
let string_of_date ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_date ob x ; Bi_outbuf . contents ob |
let get_date_reader = ( fun tag -> if tag <> 20 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let len = Bi_vint . read_uvint ib in if len < 3 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ; 2 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_int ) ib in let x1 = ( read__3 ) ib in let x2 = (... |
let read_date = ( fun ib -> if Bi_io . read_tag ib <> 20 then Atdgen_runtime . Ob_run . read_error_at ib ; let len = Bi_vint . read_uvint ib in if len < 3 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ; 2 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_int ) ib in let x1 = ( read__3 ) ib in let x2 = ( r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.