Home
last modified time | relevance | path

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

12

/nanopb-3.4.0/tests/alltypes_callback/
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-3.4.0/examples/using_union_messages/
DMakefile8 all: encode decode
9 ./encode 1 | ./decode
10 ./encode 2 | ./decode
11 ./encode 3 | ./decode
16 rm -f encode unionproto.pb.h unionproto.pb.c
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
48 encode.c takes one command line argument, which should be a number 1-3. It
/nanopb-3.4.0/tests/alltypes_proto3_callback/
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-3.4.0/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()
/nanopb-3.4.0/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-3.4.0/tests/regression/issue_242/
DSConscript1 # Regression test for Issue 242: pb_encode does not encode tag for
/nanopb-3.4.0/tests/oneof_callback/
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-3.4.0/
D.gitignore28 examples/using_union_messages/encode
Dpb_encode.c348 return pCallback->funcs.encode == NULL; in pb_check_proto3_default_value()
493 if (extension->type->encode) in encode_extension_field()
494 status = extension->type->encode(stream, extension); in encode_extension_field()
938 if (callback->funcs.encode) in pb_enc_submessage()
940 if (!callback->funcs.encode(stream, field, &callback->arg)) in pb_enc_submessage()
Dpb_common.c313 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.h402 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); member
444 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); member
/nanopb-3.4.0/tests/regression/issue_342/
Dtest_extensions.c27 callback_def.funcs.encode = &write_string; in main()
/nanopb-3.4.0/tests/regression/issue_249/
Dtest.c42 msg.submsg.foo.funcs.encode = &write_array; in main()
/nanopb-3.4.0/examples/simple/
DREADME.txt10 * pb_encode() to encode a message
/nanopb-3.4.0/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-3.4.0/tests/alltypes_proto3/
DSConscript13 # Re-encode the data using protoc, and check that the results from nanopb
/nanopb-3.4.0/tests/common/
DSConscript5 # Protocol definitions for the encode/decode_unittests
/nanopb-3.4.0/tests/alltypes/
DSConscript14 # Re-encode the data using protoc, and check that the results from nanopb
/nanopb-3.4.0/tests/without_64bit/
DSConscript29 # Re-encode the data using protoc, and check that the results from nanopb
/nanopb-3.4.0/docs/
Dindex.md20 to encode, decode, or both, you also need `pb_encode.h/c` or
103 Now in your main program do this to encode a message:
Dconcepts.md259 bool (*encode)(pb_ostream_t *stream, const pb_field_iter_t *field, void * const *arg);
272 Usually you can use [pb_encode_tag_for_field](reference.html#pb-encode-tag-for-field) to
273 encode the wire type and tag number of the field. However, if you want
274 to encode a repeated field as a packed array, you must call
275 [pb_encode_tag](reference.html#pb-encode-tag) instead to specify a
279 times during a single call to [pb_encode](reference.html#pb-encode). In
Dreference.md336 bool (*encode)(pb_ostream_t *stream, const pb_field_iter_t *field, void * const *arg);
351 When calling [pb_encode](#pb_encode), `funcs.encode` is used, and
378 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
563 can call exactly one of the content-writing functions to encode the
630 | value | Value to encode, cast to `uint64_t`.
634 > To encode signed values, the argument should be cast to `int64_t` first for correct sign extensio…
696 | value | Float value to encode.
714 the submessage contents. Therefore, this function has to encode the
Dmigration.md94 **Error indications:** Messages may fail to encode or decode, or the
530 represent `bytes` fields. This made it easy to encode data from a
584 pointer type, when initializing `funcs.encode` or `funcs.decode`.
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h402 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); member
444 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); member

12