Home
last modified time | relevance | path

Searched refs:funcs (Results 1 – 23 of 23) sorted by relevance

/nanopb-2.7.6/tests/alltypes_callback/
Ddecode_alltypes_callback.c280 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes()
283 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes()
286 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
289 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
292 alltypes.req_uint64.funcs.decode = &read_varint; in check_alltypes()
295 alltypes.req_sint32.funcs.decode = &read_svarint; in check_alltypes()
298 alltypes.req_sint64.funcs.decode = &read_svarint; in check_alltypes()
301 alltypes.req_bool.funcs.decode = &read_varint; in check_alltypes()
304 alltypes.req_fixed32.funcs.decode = &read_fixed32; in check_alltypes()
307 alltypes.req_sfixed32.funcs.decode = &read_fixed32; in check_alltypes()
[all …]
Dencode_alltypes_callback.c277 alltypes.req_int32.funcs.encode = &write_varint; in main()
280 alltypes.req_int64.funcs.encode = &write_varint; in main()
283 alltypes.req_uint32.funcs.encode = &write_varint; in main()
286 alltypes.req_uint32.funcs.encode = &write_varint; in main()
289 alltypes.req_uint64.funcs.encode = &write_varint; in main()
292 alltypes.req_sint32.funcs.encode = &write_svarint; in main()
295 alltypes.req_sint64.funcs.encode = &write_svarint; in main()
298 alltypes.req_bool.funcs.encode = &write_varint; in main()
301 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main()
304 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main()
[all …]
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c270 alltypes.rep_int32.funcs.decode = &read_repeated_varint; in check_alltypes()
273 alltypes.rep_int64.funcs.decode = &read_repeated_varint; in check_alltypes()
276 alltypes.rep_uint32.funcs.decode = &read_repeated_varint; in check_alltypes()
279 alltypes.rep_uint64.funcs.decode = &read_repeated_varint; in check_alltypes()
282 alltypes.rep_sint32.funcs.decode = &read_repeated_svarint; in check_alltypes()
285 alltypes.rep_sint64.funcs.decode = &read_repeated_svarint; in check_alltypes()
288 alltypes.rep_bool.funcs.decode = &read_repeated_varint; in check_alltypes()
291 alltypes.rep_fixed32.funcs.decode = &read_repeated_fixed32; in check_alltypes()
294 alltypes.rep_sfixed32.funcs.decode = &read_repeated_fixed32; in check_alltypes()
297 alltypes.rep_float.funcs.decode = &read_repeated_fixed32; in check_alltypes()
[all …]
Dencode_alltypes_callback.c239 alltypes.rep_int32.funcs.encode = &write_repeated_varint; in main()
242 alltypes.rep_int64.funcs.encode = &write_repeated_varint; in main()
245 alltypes.rep_uint32.funcs.encode = &write_repeated_varint; in main()
248 alltypes.rep_uint64.funcs.encode = &write_repeated_varint; in main()
251 alltypes.rep_sint32.funcs.encode = &write_repeated_svarint; in main()
254 alltypes.rep_sint64.funcs.encode = &write_repeated_svarint; in main()
257 alltypes.rep_bool.funcs.encode = &write_repeated_varint; in main()
260 alltypes.rep_fixed32.funcs.encode = &write_repeated_fixed32; in main()
263 alltypes.rep_sfixed32.funcs.encode = &write_repeated_fixed32; in main()
266 alltypes.rep_float.funcs.encode = &write_repeated_fixed32; in main()
[all …]
/nanopb-2.7.6/tests/callbacks/
Dencode_callbacks.c71 testmessage.stringvalue.funcs.encode = &encode_string; in main()
72 testmessage.int32value.funcs.encode = &encode_int32; in main()
73 testmessage.fixed32value.funcs.encode = &encode_fixed32; in main()
74 testmessage.fixed64value.funcs.encode = &encode_fixed64; in main()
77 testmessage.submsg.stringvalue.funcs.encode = &encode_string; in main()
78 testmessage.submsg.int32value.funcs.encode = &encode_int32; in main()
79 testmessage.submsg.fixed32value.funcs.encode = &encode_fixed32; in main()
80 testmessage.submsg.fixed64value.funcs.encode = &encode_fixed64; in main()
82 testmessage.repeatedstring.funcs.encode = &encode_repeatedstring; in main()
Ddecode_callbacks.c73 testmessage.submsg.stringvalue.funcs.decode = &print_string; in main()
75 testmessage.submsg.int32value.funcs.decode = &print_int32; in main()
77 testmessage.submsg.fixed32value.funcs.decode = &print_fixed32; in main()
79 testmessage.submsg.fixed64value.funcs.decode = &print_fixed64; in main()
82 testmessage.stringvalue.funcs.decode = &print_string; in main()
84 testmessage.int32value.funcs.decode = &print_int32; in main()
86 testmessage.fixed32value.funcs.decode = &print_fixed32; in main()
88 testmessage.fixed64value.funcs.decode = &print_fixed64; in main()
90 testmessage.repeatedstring.funcs.decode = &print_string; in main()
/nanopb-2.7.6/tests/cyclic_messages/
Dencode_cyclic_callback.c42 tree.left.funcs.encode = encode_tree; in encode_tree()
46 tree.right.funcs.encode = encode_tree; in encode_tree()
84 pair.treeValue.funcs.encode = encode_tree; in encode_dictionary()
100 pair.dictValue.dictItem.funcs.encode = encode_dictionary; in encode_dictionary()
135 dict.dictItem.funcs.encode = encode_dictionary; in main()
/nanopb-2.7.6/tests/regression/issue_249/
Dtest.c42 msg.submsg.foo.funcs.encode = &write_array; in main()
51 msg.submsg.foo.funcs.decode = &read_array; in main()
/nanopb-2.7.6/tests/oneof_callback/
Ddecode_oneof.c94 msg->array.funcs.decode = print_int32; in msg_callback()
101 msg->strvalue.funcs.decode = print_string; in msg_callback()
139 msg.cb_values.funcs.decode = msg_callback; in main()
Dencode_oneof.c91 msg.values.submsg1.array.funcs.encode = encode_int32_array; in main()
96 msg.values.submsg2.strvalue.funcs.encode = encode_string; in main()
/nanopb-2.7.6/tests/regression/issue_342/
Dtest_extensions.c27 callback_def.funcs.encode = &write_string; in main()
/nanopb-2.7.6/tests/regression/issue_544/
Dsubmsg_callback.c47 msg.cb_oneof.funcs.decode = msg_callback; in main()
/nanopb-2.7.6/
Dpb_common.c308 if (istream != NULL && pCallback->funcs.decode != NULL) in pb_default_field_callback()
310 return pCallback->funcs.decode(istream, field, &pCallback->arg); in pb_default_field_callback()
313 if (ostream != NULL && pCallback->funcs.encode != NULL) in pb_default_field_callback()
315 return pCallback->funcs.encode(ostream, field, &pCallback->arg); in pb_default_field_callback()
Dpb_encode.c346 return pCallback->funcs.encode == NULL; in pb_check_proto3_default_value()
925 if (callback->funcs.encode) in pb_enc_submessage()
927 if (!callback->funcs.encode(stream, field, &callback->arg)) in pb_enc_submessage()
Dpb_decode.c1587 if (callback->funcs.decode) in pb_dec_submessage()
1589 status = callback->funcs.decode(&substream, field, &callback->arg); in pb_dec_submessage()
Dpb.h367 } funcs; member
/nanopb-2.7.6/tests/fuzztest/
Dfuzztest.c171 msg->rep_int32.funcs.decode = &field_callback; in do_callback_decode()
173 msg->rep_string.funcs.decode = &field_callback; in do_callback_decode()
175 msg->rep_farray.funcs.decode = &field_callback; in do_callback_decode()
177 msg->req_limits.int64_min.funcs.decode = &field_callback; in do_callback_decode()
179 msg->cb_oneof.funcs.decode = &submsg_callback; in do_callback_decode()
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c320 msg.data.funcs.encode = &fieldcallback; in main()
376 msg.submsg.data.funcs.encode = &fieldcallback; in main()
377 msg2.submsg.submsg.data.funcs.encode = &fieldcallback; in main()
385 msg.submsg.data.funcs.encode = &crazyfieldcallback; in main()
387 msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback; in main()
/nanopb-2.7.6/tests/mem_release/
Dmem_release.c232 msg.subs.funcs.decode = dummy_decode_cb; in test_Garbage()
/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c354 dest.data.funcs.decode = &callback_check; in main()
/nanopb-2.7.6/docs/
Dmigration.md527 pointer type, when initializing `funcs.encode` or `funcs.decode`.
Dreference.md324 } funcs;
338 When calling [pb_encode](#pb_encode), `funcs.encode` is used, and
339 similarly when calling [pb_decode](#pb_decode), `funcs.decode` is used.
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h367 } funcs; member