/nanopb-3.4.0/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 280 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 …]
|
/nanopb-3.4.0/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 270 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 …]
|
/nanopb-3.4.0/tests/callbacks/ |
D | decode_callbacks.c | 73 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-3.4.0/examples/using_union_messages/ |
D | Makefile | 8 all: encode decode 9 ./encode 1 | ./decode 10 ./encode 2 | ./decode 11 ./encode 3 | ./decode
|
D | README.txt | 9 This directory contains an example on how to encode and decode union messages 30 ./encode 1 | ./decode 32 ./encode 2 | ./decode 34 ./encode 3 | ./decode 37 This simply demonstrates that the "decode" program has correctly identified 38 the type of the received message, and managed to decode it. 51 decode.c reads a UnionMessage from stdin. Then it calls the function
|
/nanopb-3.4.0/tests/oneof_callback/ |
D | decode_oneof.c | 94 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()
|
D | SConscript | 18 # Encode message, then decode with protoc and test program and compare.
|
/nanopb-3.4.0/ |
D | .gitignore | 27 examples/using_union_messages/decode
|
D | pb_common.c | 308 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()
|
D | pb_decode.c | 853 if (extension->type->decode) in decode_extension() 854 status = extension->type->decode(stream, extension, tag, wire_type); in decode_extension() 1605 if (callback->funcs.decode) in pb_dec_submessage() 1607 status = callback->funcs.decode(&substream, field, &callback->arg); in pb_dec_submessage()
|
D | pb.h | 401 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); member 435 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, member
|
/nanopb-3.4.0/tests/regression/issue_544/ |
D | submsg_callback.c | 47 msg.cb_oneof.funcs.decode = msg_callback; in main()
|
/nanopb-3.4.0/tests/regression/issue_249/ |
D | test.c | 51 msg.submsg.foo.funcs.decode = &read_array; in main()
|
/nanopb-3.4.0/tests/fuzztest/ |
D | fuzztest.c | 171 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-3.4.0/examples/simple/ |
D | README.txt | 12 * pb_decode() to decode a message
|
/nanopb-3.4.0/docs/ |
D | index.md | 20 to encode, decode, or both, you also need `pb_encode.h/c` or 112 message to `protoc --decode=Example message.proto` to verify its
|
D | concepts.md | 240 Your code can then handle the field in custom ways, for example decode 296 bool (*decode)(pb_istream_t *stream, const pb_field_iter_t *field, void **arg); 311 ends, or leave it to [pb_decode](reference.html#pb-decode) to call your
|
D | migration.md | 94 **Error indications:** Messages may fail to encode or decode, or the 354 **Rationale:** Previously nanopb didn't properly decode special 584 pointer type, when initializing `funcs.encode` or `funcs.decode`.
|
D | reference.md | 335 bool (*decode)(pb_istream_t *stream, const pb_field_iter_t *field, void **arg); 352 similarly when calling [pb_decode](#pb_decode), `funcs.decode` is used. 376 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 755 Read and decode all fields of a structure. Reads until EOF on input 876 Read and decode a [varint](http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints)
|
D | whats_new.md | 115 pointers inside the submessage, or just completely decode the submessage
|
/nanopb-3.4.0/tests/mem_release/ |
D | mem_release.c | 232 msg.subs.funcs.decode = dummy_decode_cb; in test_Garbage()
|
/nanopb-3.4.0/generator/proto/ |
D | nanopb.proto | 87 // decode oneof as anonymous union
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb.h | 401 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); member 435 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, member
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 354 dest.data.funcs.decode = &callback_check; in main()
|
/nanopb-3.4.0/generator/ |
D | nanopb_generator.py | 794 inner_init = '"' + data.decode('ascii') + '"'
|