Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 25) sorted by relevance

/nanopb-3.4.0/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 …]
/nanopb-3.4.0/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 …]
/nanopb-3.4.0/tests/callbacks/
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-3.4.0/examples/using_union_messages/
DMakefile8 all: encode decode
9 ./encode 1 | ./decode
10 ./encode 2 | ./decode
11 ./encode 3 | ./decode
DREADME.txt9 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/
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()
DSConscript18 # Encode message, then decode with protoc and test program and compare.
/nanopb-3.4.0/
D.gitignore27 examples/using_union_messages/decode
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()
Dpb_decode.c853 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()
Dpb.h401 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/
Dsubmsg_callback.c47 msg.cb_oneof.funcs.decode = msg_callback; in main()
/nanopb-3.4.0/tests/regression/issue_249/
Dtest.c51 msg.submsg.foo.funcs.decode = &read_array; in main()
/nanopb-3.4.0/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-3.4.0/examples/simple/
DREADME.txt12 * pb_decode() to decode a message
/nanopb-3.4.0/docs/
Dindex.md20 to encode, decode, or both, you also need `pb_encode.h/c` or
112 message to `protoc --decode=Example message.proto` to verify its
Dconcepts.md240 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
Dmigration.md94 **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`.
Dreference.md335 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)
Dwhats_new.md115 pointers inside the submessage, or just completely decode the submessage
/nanopb-3.4.0/tests/mem_release/
Dmem_release.c232 msg.subs.funcs.decode = dummy_decode_cb; in test_Garbage()
/nanopb-3.4.0/generator/proto/
Dnanopb.proto87 // decode oneof as anonymous union
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h401 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/
Ddecode_unittests.c354 dest.data.funcs.decode = &callback_check; in main()
/nanopb-3.4.0/generator/
Dnanopb_generator.py794 inner_init = '"' + data.decode('ascii') + '"'