| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
include Size |
| 7 |
|
| 8 |
let bin_unit = Type_class.bin_unit |
| 9 |
let bin_shape_unit = Type_class.bin_shape_unit |
| 10 |
let bin_writer_unit = Type_class.bin_writer_unit |
| 11 |
let bin_write_unit = Write.bin_write_unit |
| 12 |
let bin_write_unit__local = Write.bin_write_unit__local |
| 13 |
let bin_reader_unit = Type_class.bin_reader_unit |
| 14 |
let bin_read_unit = Read.bin_read_unit |
| 15 |
|
| 16 |
let __bin_read_unit__ _buf ~pos_ref _vint = |
| 17 |
Common.raise_variant_wrong_type "unit" !pos_ref |
| 18 |
;; |
| 19 |
|
| 20 |
let bin_bool = Type_class.bin_bool |
| 21 |
let bin_shape_bool = Type_class.bin_shape_bool |
| 22 |
let bin_writer_bool = Type_class.bin_writer_bool |
| 23 |
let bin_write_bool = Write.bin_write_bool |
| 24 |
let bin_write_bool__local = Write.bin_write_bool__local |
| 25 |
let bin_reader_bool = Type_class.bin_reader_bool |
| 26 |
let bin_read_bool = Read.bin_read_bool |
| 27 |
|
| 28 |
let __bin_read_bool__ _buf ~pos_ref _vint = |
| 29 |
Common.raise_variant_wrong_type "bool" !pos_ref |
| 30 |
;; |
| 31 |
|
| 32 |
let bin_string = Type_class.bin_string |
| 33 |
let bin_shape_string = Type_class.bin_shape_string |
| 34 |
let bin_writer_string = Type_class.bin_writer_string |
| 35 |
let bin_write_string = Write.bin_write_string |
| 36 |
let bin_write_string__local = Write.bin_write_string__local |
| 37 |
let bin_reader_string = Type_class.bin_reader_string |
| 38 |
let bin_read_string = Read.bin_read_string |
| 39 |
|
| 40 |
let __bin_read_string__ _buf ~pos_ref _vint = |
| 41 |
Common.raise_variant_wrong_type "string" !pos_ref |
| 42 |
;; |
| 43 |
|
| 44 |
let bin_bytes = Type_class.bin_bytes |
| 45 |
let bin_shape_bytes = Type_class.bin_shape_bytes |
| 46 |
let bin_writer_bytes = Type_class.bin_writer_bytes |
| 47 |
let bin_write_bytes = Write.bin_write_bytes |
| 48 |
let bin_write_bytes__local = Write.bin_write_bytes__local |
| 49 |
let bin_reader_bytes = Type_class.bin_reader_bytes |
| 50 |
let bin_read_bytes = Read.bin_read_bytes |
| 51 |
|
| 52 |
let __bin_read_bytes__ _buf ~pos_ref _vint = |
| 53 |
Common.raise_variant_wrong_type "bytes" !pos_ref |
| 54 |
;; |
| 55 |
|
| 56 |
let bin_char = Type_class.bin_char |
| 57 |
let bin_shape_char = Type_class.bin_shape_char |
| 58 |
let bin_writer_char = Type_class.bin_writer_char |
| 59 |
let bin_write_char = Write.bin_write_char |
| 60 |
let bin_write_char__local = Write.bin_write_char__local |
| 61 |
let bin_reader_char = Type_class.bin_reader_char |
| 62 |
let bin_read_char = Read.bin_read_char |
| 63 |
|
| 64 |
let __bin_read_char__ _buf ~pos_ref _vint = |
| 65 |
Common.raise_variant_wrong_type "char" !pos_ref |
| 66 |
;; |
| 67 |
|
| 68 |
let bin_int = Type_class.bin_int |
| 69 |
let bin_shape_int = Type_class.bin_shape_int |
| 70 |
let bin_writer_int = Type_class.bin_writer_int |
| 71 |
let bin_write_int = Write.bin_write_int |
| 72 |
let bin_write_int__local = Write.bin_write_int__local |
| 73 |
let bin_reader_int = Type_class.bin_reader_int |
| 74 |
let bin_read_int = Read.bin_read_int |
| 75 |
let __bin_read_int__ _buf ~pos_ref _vint = Common.raise_variant_wrong_type "int" !pos_ref |
| 76 |
let bin_float = Type_class.bin_float |
| 77 |
let bin_shape_float = Type_class.bin_shape_float |
| 78 |
let bin_writer_float = Type_class.bin_writer_float |
| 79 |
let bin_write_float = Write.bin_write_float |
| 80 |
let bin_write_float__local = Write.bin_write_float__local |
| 81 |
let bin_reader_float = Type_class.bin_reader_float |
| 82 |
let bin_read_float = Read.bin_read_float |
| 83 |
|
| 84 |
let __bin_read_float__ _buf ~pos_ref _vint = |
| 85 |
Common.raise_variant_wrong_type "float" !pos_ref |
| 86 |
;; |
| 87 |
|
| 88 |
let bin_floatarray = Type_class.bin_floatarray |
| 89 |
let bin_shape_floatarray = Type_class.bin_shape_floatarray |
| 90 |
let bin_writer_floatarray = Type_class.bin_writer_floatarray |
| 91 |
let bin_write_floatarray = Write.bin_write_floatarray |
| 92 |
let bin_write_floatarray__local = Write.bin_write_floatarray__local |
| 93 |
let bin_reader_floatarray = Type_class.bin_reader_floatarray |
| 94 |
let bin_read_floatarray = Read.bin_read_floatarray |
| 95 |
|
| 96 |
let __bin_read_floatarray__ _buf ~pos_ref _vint = |
| 97 |
Common.raise_variant_wrong_type "floatarray" !pos_ref |
| 98 |
;; |
| 99 |
|
| 100 |
let bin_int32 = Type_class.bin_int32 |
| 101 |
let bin_shape_int32 = Type_class.bin_shape_int32 |
| 102 |
let bin_writer_int32 = Type_class.bin_writer_int32 |
| 103 |
let bin_write_int32 = Write.bin_write_int32 |
| 104 |
let bin_write_int32__local = Write.bin_write_int32__local |
| 105 |
let bin_reader_int32 = Type_class.bin_reader_int32 |
| 106 |
let bin_read_int32 = Read.bin_read_int32 |
| 107 |
|
| 108 |
let __bin_read_int32__ _buf ~pos_ref _vint = |
| 109 |
Common.raise_variant_wrong_type "int32" !pos_ref |
| 110 |
;; |
| 111 |
|
| 112 |
let bin_int64 = Type_class.bin_int64 |
| 113 |
let bin_shape_int64 = Type_class.bin_shape_int64 |
| 114 |
let bin_writer_int64 = Type_class.bin_writer_int64 |
| 115 |
let bin_write_int64 = Write.bin_write_int64 |
| 116 |
let bin_write_int64__local = Write.bin_write_int64__local |
| 117 |
let bin_reader_int64 = Type_class.bin_reader_int64 |
| 118 |
let bin_read_int64 = Read.bin_read_int64 |
| 119 |
|
| 120 |
let __bin_read_int64__ _buf ~pos_ref _vint = |
| 121 |
Common.raise_variant_wrong_type "int64" !pos_ref |
| 122 |
;; |
| 123 |
|
| 124 |
let bin_nativeint = Type_class.bin_nativeint |
| 125 |
let bin_shape_nativeint = Type_class.bin_shape_nativeint |
| 126 |
let bin_writer_nativeint = Type_class.bin_writer_nativeint |
| 127 |
let bin_write_nativeint = Write.bin_write_nativeint |
| 128 |
let bin_write_nativeint__local = Write.bin_write_nativeint__local |
| 129 |
let bin_reader_nativeint = Type_class.bin_reader_nativeint |
| 130 |
let bin_read_nativeint = Read.bin_read_nativeint |
| 131 |
|
| 132 |
let __bin_read_nativeint__ _buf ~pos_ref _vint = |
| 133 |
Common.raise_variant_wrong_type "nativeint" !pos_ref |
| 134 |
;; |
| 135 |
|
| 136 |
let bin_ref = Type_class.bin_ref |
| 137 |
let bin_shape_ref = Type_class.bin_shape_ref |
| 138 |
let bin_writer_ref = Type_class.bin_writer_ref |
| 139 |
let bin_write_ref = Write.bin_write_ref |
| 140 |
let bin_write_ref__local = Write.bin_write_ref__local |
| 141 |
let bin_reader_ref = Type_class.bin_reader_ref |
| 142 |
let bin_read_ref = Read.bin_read_ref |
| 143 |
|
| 144 |
let __bin_read_ref__ _f _buf ~pos_ref _vint = |
| 145 |
Common.raise_variant_wrong_type "ref" !pos_ref |
| 146 |
;; |
| 147 |
|
| 148 |
let bin_lazy_t = Type_class.bin_lazy |
| 149 |
let bin_shape_lazy_t = Type_class.bin_shape_lazy |
| 150 |
let bin_writer_lazy_t = Type_class.bin_writer_lazy |
| 151 |
let bin_write_lazy_t = Write.bin_write_lazy |
| 152 |
let bin_write_lazy_t__local = Write.bin_write_lazy__local |
| 153 |
let bin_reader_lazy_t = Type_class.bin_reader_lazy |
| 154 |
let bin_read_lazy_t = Read.bin_read_lazy |
| 155 |
|
| 156 |
let __bin_read_lazy_t__ _f _buf ~pos_ref _vint = |
| 157 |
Common.raise_variant_wrong_type "lazy" !pos_ref |
| 158 |
;; |
| 159 |
|
| 160 |
let bin_lazy = Type_class.bin_lazy |
| 161 |
let bin_shape_lazy = Type_class.bin_shape_lazy |
| 162 |
let bin_writer_lazy = Type_class.bin_writer_lazy |
| 163 |
let bin_write_lazy = Write.bin_write_lazy |
| 164 |
let bin_write_lazy__local = Write.bin_write_lazy__local |
| 165 |
let bin_reader_lazy = Type_class.bin_reader_lazy |
| 166 |
let bin_read_lazy = Read.bin_read_lazy |
| 167 |
|
| 168 |
let __bin_read_lazy__ _f _buf ~pos_ref _vint = |
| 169 |
Common.raise_variant_wrong_type "lazy" !pos_ref |
| 170 |
;; |
| 171 |
|
| 172 |
let bin_option = Type_class.bin_option |
| 173 |
let bin_shape_option = Type_class.bin_shape_option |
| 174 |
let bin_writer_option = Type_class.bin_writer_option |
| 175 |
let bin_write_option = Write.bin_write_option |
| 176 |
let bin_write_option__local = Write.bin_write_option__local |
| 177 |
let bin_reader_option = Type_class.bin_reader_option |
| 178 |
let bin_read_option = Read.bin_read_option |
| 179 |
|
| 180 |
let __bin_read_option__ _f _buf ~pos_ref _vint = |
| 181 |
Common.raise_variant_wrong_type "option" !pos_ref |
| 182 |
;; |
| 183 |
|
| 184 |
let bin_list = Type_class.bin_list |
| 185 |
let bin_shape_list = Type_class.bin_shape_list |
| 186 |
let bin_writer_list = Type_class.bin_writer_list |
| 187 |
let bin_write_list = Write.bin_write_list |
| 188 |
let bin_write_list__local = Write.bin_write_list__local |
| 189 |
let bin_reader_list = Type_class.bin_reader_list |
| 190 |
let bin_read_list = Read.bin_read_list |
| 191 |
|
| 192 |
let __bin_read_list__ _f _buf ~pos_ref _vint = |
| 193 |
Common.raise_variant_wrong_type "list" !pos_ref |
| 194 |
;; |
| 195 |
|
| 196 |
let bin_array = Type_class.bin_array |
| 197 |
let bin_shape_array = Type_class.bin_shape_array |
| 198 |
let bin_writer_array = Type_class.bin_writer_array |
| 199 |
let bin_write_array = Write.bin_write_array |
| 200 |
let bin_write_array__local = Write.bin_write_array__local |
| 201 |
let bin_reader_array = Type_class.bin_reader_array |
| 202 |
let bin_read_array = Read.bin_read_array |
| 203 |
|
| 204 |
let __bin_read_array__ _f _buf ~pos_ref _vint = |
| 205 |
Common.raise_variant_wrong_type "array" !pos_ref |
| 206 |
;; |
| 207 |
|
| 208 |
let bin_hashtbl = Type_class.bin_hashtbl |
| 209 |
let bin_shape_hashtbl = Type_class.bin_shape_hashtbl |
| 210 |
let bin_writer_hashtbl = Type_class.bin_writer_hashtbl |
| 211 |
let bin_write_hashtbl = Write.bin_write_hashtbl |
| 212 |
let bin_reader_hashtbl = Type_class.bin_reader_hashtbl |
| 213 |
let bin_read_hashtbl = Read.bin_read_hashtbl |
| 214 |
|
| 215 |
let __bin_read_hashtbl__ _f _g _buf ~pos_ref _vint = |
| 216 |
Common.raise_variant_wrong_type "hashtbl" !pos_ref |
| 217 |
;; |
| 218 |
|
| 219 |
let bin_bigstring = Type_class.bin_bigstring |
| 220 |
let bin_shape_bigstring = Type_class.bin_shape_bigstring |
| 221 |
let bin_writer_bigstring = Type_class.bin_writer_bigstring |
| 222 |
let bin_write_bigstring = Write.bin_write_bigstring |
| 223 |
let bin_write_bigstring__local = Write.bin_write_bigstring__local |
| 224 |
let bin_reader_bigstring = Type_class.bin_reader_bigstring |
| 225 |
let bin_read_bigstring = Read.bin_read_bigstring |
| 226 |
|
| 227 |
let __bin_read_bigstring__ _buf ~pos_ref _vint = |
| 228 |
Common.raise_variant_wrong_type "bigstring" !pos_ref |
| 229 |
;; |
| 230 |
|
| 231 |
let bin_mat = Type_class.bin_mat |
| 232 |
let bin_shape_mat = Type_class.bin_shape_mat |
| 233 |
let bin_writer_mat = Type_class.bin_writer_mat |
| 234 |
let bin_write_mat = Write.bin_write_mat |
| 235 |
let bin_write_mat__local = Write.bin_write_mat__local |
| 236 |
let bin_reader_mat = Type_class.bin_reader_mat |
| 237 |
let bin_read_mat = Read.bin_read_mat |
| 238 |
let __bin_read_mat__ _buf ~pos_ref _vint = Common.raise_variant_wrong_type "mat" !pos_ref |
| 239 |
let bin_float32_mat = Type_class.bin_float32_mat |
| 240 |
let bin_shape_float32_mat = Type_class.bin_shape_float32_mat |
| 241 |
let bin_writer_float32_mat = Type_class.bin_writer_float32_mat |
| 242 |
let bin_write_float32_mat = Write.bin_write_float32_mat |
| 243 |
let bin_write_float32_mat__local = Write.bin_write_float32_mat__local |
| 244 |
let bin_reader_float32_mat = Type_class.bin_reader_float32_mat |
| 245 |
let bin_read_float32_mat = Read.bin_read_float32_mat |
| 246 |
|
| 247 |
let __bin_read_float32_mat__ _buf ~pos_ref _vint = |
| 248 |
Common.raise_variant_wrong_type "float32_mat" !pos_ref |
| 249 |
;; |
| 250 |
|
| 251 |
let bin_float64_mat = Type_class.bin_float64_mat |
| 252 |
let bin_shape_float64_mat = Type_class.bin_shape_float64_mat |
| 253 |
let bin_writer_float64_mat = Type_class.bin_writer_float64_mat |
| 254 |
let bin_write_float64_mat = Write.bin_write_float64_mat |
| 255 |
let bin_write_float64_mat__local = Write.bin_write_float64_mat__local |
| 256 |
let bin_reader_float64_mat = Type_class.bin_reader_float64_mat |
| 257 |
let bin_read_float64_mat = Read.bin_read_float64_mat |
| 258 |
|
| 259 |
let __bin_read_float64_mat__ _buf ~pos_ref _vint = |
| 260 |
Common.raise_variant_wrong_type "float64_mat" !pos_ref |
| 261 |
;; |
| 262 |
|
| 263 |
let bin_vec = Type_class.bin_vec |
| 264 |
let bin_shape_vec = Type_class.bin_shape_vec |
| 265 |
let bin_writer_vec = Type_class.bin_writer_vec |
| 266 |
let bin_write_vec = Write.bin_write_vec |
| 267 |
let bin_write_vec__local = Write.bin_write_vec__local |
| 268 |
let bin_reader_vec = Type_class.bin_reader_vec |
| 269 |
let bin_read_vec = Read.bin_read_vec |
| 270 |
let __bin_read_vec__ _buf ~pos_ref _vint = Common.raise_variant_wrong_type "vec" !pos_ref |
| 271 |
let bin_float32_vec = Type_class.bin_float32_vec |
| 272 |
let bin_shape_float32_vec = Type_class.bin_shape_float32_vec |
| 273 |
let bin_writer_float32_vec = Type_class.bin_writer_float32_vec |
| 274 |
let bin_write_float32_vec = Write.bin_write_float32_vec |
| 275 |
let bin_write_float32_vec__local = Write.bin_write_float32_vec__local |
| 276 |
let bin_reader_float32_vec = Type_class.bin_reader_float32_vec |
| 277 |
let bin_read_float32_vec = Read.bin_read_float32_vec |
| 278 |
|
| 279 |
let __bin_read_float32_vec__ _buf ~pos_ref _vint = |
| 280 |
Common.raise_variant_wrong_type "float32_vec" !pos_ref |
| 281 |
;; |
| 282 |
|
| 283 |
let bin_float64_vec = Type_class.bin_float64_vec |
| 284 |
let bin_shape_float64_vec = Type_class.bin_shape_float64_vec |
| 285 |
let bin_writer_float64_vec = Type_class.bin_writer_float64_vec |
| 286 |
let bin_write_float64_vec = Write.bin_write_float64_vec |
| 287 |
let bin_write_float64_vec__local = Write.bin_write_float64_vec__local |
| 288 |
let bin_reader_float64_vec = Type_class.bin_reader_float64_vec |
| 289 |
let bin_read_float64_vec = Read.bin_read_float64_vec |
| 290 |
|
| 291 |
let __bin_read_float64_vec__ _buf ~pos_ref _vint = |
| 292 |
Common.raise_variant_wrong_type "float64_vec" !pos_ref |
| 293 |
;; |