Lines Matching refs:alltypes
10 #include "alltypes.pb.h"
219 AllTypes alltypes;
222 memset(&alltypes, 0xAA, sizeof(alltypes));
224 alltypes.req_int32.funcs.decode = &read_varint;
225 alltypes.req_int32.arg = (void*)-1001;
227 alltypes.req_int64.funcs.decode = &read_varint;
228 alltypes.req_int64.arg = (void*)-1002;
230 alltypes.req_uint32.funcs.decode = &read_varint;
231 alltypes.req_uint32.arg = (void*)1003;
233 alltypes.req_uint32.funcs.decode = &read_varint;
234 alltypes.req_uint32.arg = (void*)1003;
236 alltypes.req_uint64.funcs.decode = &read_varint;
237 alltypes.req_uint64.arg = (void*)1004;
239 alltypes.req_sint32.funcs.decode = &read_svarint;
240 alltypes.req_sint32.arg = (void*)-1005;
242 alltypes.req_sint64.funcs.decode = &read_svarint;
243 alltypes.req_sint64.arg = (void*)-1006;
245 alltypes.req_bool.funcs.decode = &read_varint;
246 alltypes.req_bool.arg = (void*)true;
248 alltypes.req_fixed32.funcs.decode = &read_fixed32;
249 alltypes.req_fixed32.arg = &req_fixed32;
251 alltypes.req_sfixed32.funcs.decode = &read_fixed32;
252 alltypes.req_sfixed32.arg = &req_sfixed32;
254 alltypes.req_float.funcs.decode = &read_fixed32;
255 alltypes.req_float.arg = &req_float;
257 alltypes.req_fixed64.funcs.decode = &read_fixed64;
258 alltypes.req_fixed64.arg = &req_fixed64;
260 alltypes.req_sfixed64.funcs.decode = &read_fixed64;
261 alltypes.req_sfixed64.arg = &req_sfixed64;
263 alltypes.req_double.funcs.decode = &read_fixed64;
264 alltypes.req_double.arg = &req_double;
266 alltypes.req_string.funcs.decode = &read_string;
267 alltypes.req_string.arg = "1014";
269 alltypes.req_bytes.funcs.decode = &read_string;
270 alltypes.req_bytes.arg = "1015";
272 alltypes.req_submsg.funcs.decode = &read_submsg;
273 alltypes.req_submsg.arg = &req_submsg;
275 alltypes.req_enum.funcs.decode = &read_varint;
276 alltypes.req_enum.arg = (void*)MyEnum_Truth;
278 alltypes.req_emptymsg.funcs.decode = &read_emptymsg;
281 alltypes.rep_int32.funcs.decode = &read_repeated_varint;
282 alltypes.rep_int32.arg = rep_int32;
284 alltypes.rep_int64.funcs.decode = &read_repeated_varint;
285 alltypes.rep_int64.arg = rep_int64;
287 alltypes.rep_uint32.funcs.decode = &read_repeated_varint;
288 alltypes.rep_uint32.arg = rep_uint32;
290 alltypes.rep_uint64.funcs.decode = &read_repeated_varint;
291 alltypes.rep_uint64.arg = rep_uint64;
293 alltypes.rep_sint32.funcs.decode = &read_repeated_svarint;
294 alltypes.rep_sint32.arg = rep_sint32;
296 alltypes.rep_sint64.funcs.decode = &read_repeated_svarint;
297 alltypes.rep_sint64.arg = rep_sint64;
299 alltypes.rep_bool.funcs.decode = &read_repeated_varint;
300 alltypes.rep_bool.arg = rep_bool;
302 alltypes.rep_fixed32.funcs.decode = &read_repeated_fixed32;
303 alltypes.rep_fixed32.arg = rep_fixed32;
305 alltypes.rep_sfixed32.funcs.decode = &read_repeated_fixed32;
306 alltypes.rep_sfixed32.arg = rep_sfixed32;
308 alltypes.rep_float.funcs.decode = &read_repeated_fixed32;
309 alltypes.rep_float.arg = rep_float;
311 alltypes.rep_fixed64.funcs.decode = &read_repeated_fixed64;
312 alltypes.rep_fixed64.arg = rep_fixed64;
314 alltypes.rep_sfixed64.funcs.decode = &read_repeated_fixed64;
315 alltypes.rep_sfixed64.arg = rep_sfixed64;
317 alltypes.rep_double.funcs.decode = &read_repeated_fixed64;
318 alltypes.rep_double.arg = rep_double;
320 alltypes.rep_string.funcs.decode = &read_repeated_string;
321 alltypes.rep_string.arg = rep_string;
323 alltypes.rep_bytes.funcs.decode = &read_repeated_string;
324 alltypes.rep_bytes.arg = rep_bytes;
326 alltypes.rep_submsg.funcs.decode = &read_repeated_submsg;
327 alltypes.rep_submsg.arg = rep_submsg;
329 alltypes.rep_enum.funcs.decode = &read_repeated_varint;
330 alltypes.rep_enum.arg = rep_enum;
332 alltypes.rep_emptymsg.funcs.decode = &read_emptymsg;
334 alltypes.req_limits.funcs.decode = &read_limits;
336 alltypes.end.funcs.decode = &read_varint;
337 alltypes.end.arg = (void*)1099;
342 alltypes.opt_int32.funcs.decode = &read_varint;
343 alltypes.opt_int32.arg = (void*)3041;
345 alltypes.opt_int64.funcs.decode = &read_varint;
346 alltypes.opt_int64.arg = (void*)3042;
348 alltypes.opt_uint32.funcs.decode = &read_varint;
349 alltypes.opt_uint32.arg = (void*)3043;
351 alltypes.opt_uint64.funcs.decode = &read_varint;
352 alltypes.opt_uint64.arg = (void*)3044;
354 alltypes.opt_sint32.funcs.decode = &read_svarint;
355 alltypes.opt_sint32.arg = (void*)3045;
357 alltypes.opt_sint64.funcs.decode = &read_svarint;
358 alltypes.opt_sint64.arg = (void*)3046;
360 alltypes.opt_bool.funcs.decode = &read_varint;
361 alltypes.opt_bool.arg = (void*)true;
363 alltypes.opt_fixed32.funcs.decode = &read_fixed32;
364 alltypes.opt_fixed32.arg = &opt_fixed32;
366 alltypes.opt_sfixed32.funcs.decode = &read_fixed32;
367 alltypes.opt_sfixed32.arg = &opt_sfixed32;
369 alltypes.opt_float.funcs.decode = &read_fixed32;
370 alltypes.opt_float.arg = &opt_float;
372 alltypes.opt_fixed64.funcs.decode = &read_fixed64;
373 alltypes.opt_fixed64.arg = &opt_fixed64;
375 alltypes.opt_sfixed64.funcs.decode = &read_fixed64;
376 alltypes.opt_sfixed64.arg = &opt_sfixed64;
378 alltypes.opt_double.funcs.decode = &read_fixed64;
379 alltypes.opt_double.arg = &opt_double;
381 alltypes.opt_string.funcs.decode = &read_string;
382 alltypes.opt_string.arg = "3054";
384 alltypes.opt_bytes.funcs.decode = &read_string;
385 alltypes.opt_bytes.arg = "3055";
387 alltypes.opt_submsg.funcs.decode = &read_submsg;
388 alltypes.opt_submsg.arg = &opt_submsg;
390 alltypes.opt_enum.funcs.decode = &read_varint;
391 alltypes.opt_enum.arg = (void*)MyEnum_Truth;
393 alltypes.opt_emptymsg.funcs.decode = &read_emptymsg;
396 return pb_decode(stream, AllTypes_fields, &alltypes);