text stringlengths 0 601k |
|---|
let write_intopt ob x = Bi_io . write_tag ob Bi_io . num_variant_tag ; write_untagged_intopt ob x |
let string_of_intopt ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_intopt ob x ; Bi_outbuf . contents ob |
let get_intopt_reader = ( get__4_reader ) |
let read_intopt = ( read__4 ) |
let intopt_of_string ? pos s = read_intopt ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__21 = ( Atdgen_runtime . Ob_run . write_untagged_list Bi_io . tuple_tag ( fun ob x -> Bi_vint . write_uvint ob 2 ; ( let x , _ = x in ( Bi_io . write_string ) ob x ) ; ( let _ , x = x in ( Bi_io . write_svint ) ob x ) ; ) ) |
let write__21 ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__21 ob x |
let string_of__21 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__21 ob x ; Bi_outbuf . contents ob |
let get__21_reader = ( Atdgen_runtime . Ob_run . get_list_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 < 2 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_string ) i... |
let read__21 = ( Atdgen_runtime . Ob_run . read_list ( 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 < 2 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_string ) ib in let x1 ... |
let _21_of_string ? pos s = read__21 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_int_assoc_list = ( write_untagged__21 ) |
let write_int_assoc_list ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged_int_assoc_list ob x |
let string_of_int_assoc_list ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_int_assoc_list ob x ; Bi_outbuf . contents ob |
let get_int_assoc_list_reader = ( get__21_reader ) |
let read_int_assoc_list = ( read__21 ) |
let int_assoc_list_of_string ? pos s = read_int_assoc_list ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__22 = ( Atdgen_runtime . Ob_run . write_untagged_array Bi_io . tuple_tag ( fun ob x -> Bi_vint . write_uvint ob 2 ; ( let x , _ = x in ( Bi_io . write_string ) ob x ) ; ( let _ , x = x in ( Bi_io . write_svint ) ob x ) ; ) ) |
let write__22 ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__22 ob x |
let string_of__22 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__22 ob x ; Bi_outbuf . contents ob |
let get__22_reader = ( Atdgen_runtime . Ob_run . get_array_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 < 2 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_string ) ... |
let read__22 = ( Atdgen_runtime . Ob_run . read_array ( 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 < 2 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_string ) ib in let x1... |
let _22_of_string ? pos s = read__22 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_int_assoc_array = ( write_untagged__22 ) |
let write_int_assoc_array ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged_int_assoc_array ob x |
let string_of_int_assoc_array ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_int_assoc_array ob x ; Bi_outbuf . contents ob |
let get_int_assoc_array_reader = ( get__22_reader ) |
let read_int_assoc_array = ( read__22 ) |
let int_assoc_array_of_string ? pos s = read_int_assoc_array ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_int8 = ( Bi_io . write_untagged_int8 ) |
let write_int8 ob x = Bi_io . write_tag ob Bi_io . int8_tag ; write_untagged_int8 ob x |
let string_of_int8 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_int8 ob x ; Bi_outbuf . contents ob |
let get_int8_reader = ( Atdgen_runtime . Ob_run . get_int_reader ) |
let read_int8 = ( Atdgen_runtime . Ob_run . read_int ) |
let int8_of_string ? pos s = read_int8 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_int64 = ( Bi_io . write_untagged_int64 ) |
let write_int64 ob x = Bi_io . write_tag ob Bi_io . int64_tag ; write_untagged_int64 ob x |
let string_of_int64 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_int64 ob x ; Bi_outbuf . contents ob |
let get_int64_reader = ( Atdgen_runtime . Ob_run . get_int64_reader ) |
let read_int64 = ( Atdgen_runtime . Ob_run . read_int64 ) |
let int64_of_string ? pos s = read_int64 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_int32 = ( Bi_io . write_untagged_int32 ) |
let write_int32 ob x = Bi_io . write_tag ob Bi_io . int32_tag ; write_untagged_int32 ob x |
let string_of_int32 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_int32 ob x ; Bi_outbuf . contents ob |
let get_int32_reader = ( Atdgen_runtime . Ob_run . get_int32_reader ) |
let read_int32 = ( Atdgen_runtime . Ob_run . read_int32 ) |
let int32_of_string ? pos s = read_int32 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_hello = ( fun ob x -> match x with | ` Hello x -> Bi_outbuf . add_char4 ob ' \ 183 ' ' \ 238 ' ' \ 162 ' ' \ 242 ' ; ( Bi_io . write_string ) ob x | ` World -> Bi_outbuf . add_char4 ob ' a ' ' \ 146 ' ' \ 006 ' ' 2 ' ) |
let write_hello ob x = Bi_io . write_tag ob Bi_io . variant_tag ; write_untagged_hello ob x |
let string_of_hello ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_hello ob x ; Bi_outbuf . contents ob |
let get_hello_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 | 938386162 , true -> ( ` Hello ( ( Atdgen_runtime . Ob_run . read_string ) ib ) ) | - 510523854 , false -> ` World | _ -> Atdgen_runtime . O... |
let read_hello = ( fun ib -> if Bi_io . read_tag ib <> 23 then Atdgen_runtime . Ob_run . read_error_at ib ; Bi_io . read_hashtag ib ( fun ib h has_arg -> match h , has_arg with | 938386162 , true -> ( ` Hello ( ( Atdgen_runtime . Ob_run . read_string ) ib ) ) | - 510523854 , false -> ` World | _ -> Atdgen_runtime . Ob_... |
let hello_of_string ? pos s = read_hello ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_generic _a_tag write_untagged__a write__a : Bi_outbuf . t -> ' a generic -> unit = ( fun ob x -> Bi_vint . write_uvint ob 1 ; Bi_outbuf . add_char4 ob ' \ 240 ' ' G ' ' \ 003 ' ' \ 130 ' ; ( Bi_io . write_svint ) ob x . x294623 ; ) |
let write_generic _a_tag write_untagged__a write__a ob x = Bi_io . write_tag ob Bi_io . record_tag ; write_untagged_generic _a_tag write_untagged__a write__a ob x |
let string_of_generic _a_tag write_untagged__a write__a ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_generic _a_tag write_untagged__a write__a ob x ; Bi_outbuf . contents ob |
let get_generic_reader get__a_reader read__a = ( fun tag -> if tag <> 21 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let field_x294623 = 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 ... |
let read_generic get__a_reader read__a = ( fun ib -> if Bi_io . read_tag ib <> 21 then Atdgen_runtime . Ob_run . read_error_at ib ; let field_x294623 = 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... |
let generic_of_string get__a_reader read__a ? pos s = read_generic get__a_reader read__a ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_floats : Bi_outbuf . t -> floats -> unit = ( fun ob x -> Bi_vint . write_uvint ob 2 ; Bi_outbuf . add_char4 ob ' \ 128 ' ' M ' ' \ 146 ' ' \ 133 ' ; ( Bi_io . write_float32 ) ob x . f32 ; Bi_outbuf . add_char4 ob ' \ 128 ' ' M ' ' \ 149 ' ' ' ; $ ( Bi_io . write_float64 ) ob x . f64 ; ) |
let write_floats ob x = Bi_io . write_tag ob Bi_io . record_tag ; write_untagged_floats ob x |
let string_of_floats ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_floats ob x ; Bi_outbuf . contents ob |
let get_floats_reader = ( fun tag -> if tag <> 21 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let field_f32 = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_f64 = 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... |
let read_floats = ( fun ib -> if Bi_io . read_tag ib <> 21 then Atdgen_runtime . Ob_run . read_error_at ib ; let field_f32 = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_f64 = 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 t... |
let floats_of_string ? pos s = read_floats ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__17 = ( Atdgen_runtime . Ob_run . write_untagged_list Bi_io . string_tag ( Bi_io . write_untagged_string ) ) |
let write__17 ob x = Bi_io . write_tag ob Bi_io . array_tag ; write_untagged__17 ob x |
let string_of__17 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__17 ob x ; Bi_outbuf . contents ob |
let get__17_reader = ( Atdgen_runtime . Ob_run . get_list_reader ( Atdgen_runtime . Ob_run . get_string_reader ) ) |
let read__17 = ( Atdgen_runtime . Ob_run . read_list ( Atdgen_runtime . Ob_run . get_string_reader ) ) |
let _17_of_string ? pos s = read__17 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_extended_tuple = ( fun ob x -> Bi_vint . write_uvint ob 6 ; ( let x , _ , _ , _ , _ , _ = x in ( Bi_io . write_svint ) ob x ) ; ( let _ , x , _ , _ , _ , _ = x in ( Bi_io . write_float64 ) ob x ) ; ( let _ , _ , x , _ , _ , _ = x in ( Bi_io . write_bool ) ob x ) ; ( let _ , _ , _ , x , _ , _ = x in (... |
let write_extended_tuple ob x = Bi_io . write_tag ob Bi_io . tuple_tag ; write_untagged_extended_tuple ob x |
let string_of_extended_tuple ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_extended_tuple ob x ; Bi_outbuf . contents ob |
let get_extended_tuple_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 < 5 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ; 4 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_int ) ib in let x1 = ( Atdgen_runtime .... |
let read_extended_tuple = ( 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 < 5 then Atdgen_runtime . Ob_run . missing_tuple_fields len [ 0 ; 1 ; 4 ] ; let x0 = ( Atdgen_runtime . Ob_run . read_int ) ib in let x1 = ( Atdgen_runtime . O... |
let extended_tuple_of_string ? pos s = read_extended_tuple ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_extended : Bi_outbuf . t -> extended -> unit = ( fun ob x -> let len = ref 4 in let x_b3x = x . b3x in if x_b3x != None then incr len ; let x_b5x = x . b5x in if x_b5x != 0 . 5 then incr len ; Bi_vint . write_uvint ob ! len ; Bi_outbuf . add_char4 ob ' \ 128 ' ' \ 000 ' ' U ' ' \ 142 ' ; ( Bi_io . wr... |
let write_extended ob x = Bi_io . write_tag ob Bi_io . record_tag ; write_untagged_extended ob x |
let string_of_extended ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_extended ob x ; Bi_outbuf . contents ob |
let get_extended_reader = ( fun tag -> if tag <> 21 then Atdgen_runtime . Ob_run . read_error ( ) else fun ib -> let field_b0x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_b1x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_b2x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 )... |
let read_extended = ( fun ib -> if Bi_io . read_tag ib <> 21 then Atdgen_runtime . Ob_run . read_error_at ib ; let field_b0x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_b1x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) ) in let field_b2x = ref ( Obj . magic ( Sys . opaque_identity 0 . 0 ) )... |
let extended_of_string ? pos s = read_extended ( Bi_inbuf . from_string ? pos s ) |
let write_untagged__27 = ( fun ob x -> ( let x = ( Test_lib . Even_natural . unwrap ) x in ( write_untagged_natural ) ob x ) ) |
let write__27 ob x = Bi_io . write_tag ob natural_tag ; write_untagged__27 ob x |
let string_of__27 ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write__27 ob x ; Bi_outbuf . contents ob |
let get__27_reader = ( fun tag ib -> ( Test_lib . Even_natural . wrap ) ( ( get_natural_reader ) tag ib ) ) |
let read__27 = ( fun ib -> ( Test_lib . Even_natural . wrap ) ( ( read_natural ) ib ) ) |
let _27_of_string ? pos s = read__27 ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_even_natural = ( write_untagged__27 ) |
let write_even_natural ob x = Bi_io . write_tag ob natural_tag ; write_untagged_even_natural ob x |
let string_of_even_natural ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_even_natural ob x ; Bi_outbuf . contents ob |
let get_even_natural_reader = ( get__27_reader ) |
let read_even_natural = ( read__27 ) |
let even_natural_of_string ? pos s = read_even_natural ( Bi_inbuf . from_string ? pos s ) |
let write_untagged_def = ( Test_lib . Biniou . write_untagged_def ) |
let write_def ob x = Bi_io . write_tag ob Test_lib . Biniou . def_tag ; write_untagged_def ob x |
let string_of_def ( ? len = 1024 ) x = let ob = Bi_outbuf . create len in write_def ob x ; Bi_outbuf . contents ob |
let get_def_reader = ( Test_lib . Biniou . get_def_reader ) |
let read_def = ( Test_lib . Biniou . read_def ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.