/nanopb-2.7.6/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 277 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/examples/using_union_messages/ |
D | Makefile | 8 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
|
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 48 encode.c takes one command line argument, which should be a number 1-3. It
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | encode_alltypes_callback.c | 239 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/ |
D | encode_callbacks.c | 71 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-2.7.6/tests/cyclic_messages/ |
D | encode_cyclic_callback.c | 42 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_242/ |
D | SConscript | 1 # Regression test for Issue 242: pb_encode does not encode tag for
|
/nanopb-2.7.6/tests/oneof_callback/ |
D | encode_oneof.c | 91 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/ |
D | .gitignore | 27 examples/using_union_messages/encode
|
D | pb_encode.c | 346 return pCallback->funcs.encode == NULL; in pb_check_proto3_default_value() 491 if (extension->type->encode) in encode_extension_field() 492 status = extension->type->encode(stream, extension); in encode_extension_field() 925 if (callback->funcs.encode) in pb_enc_submessage() 927 if (!callback->funcs.encode(stream, field, &callback->arg)) in pb_enc_submessage()
|
D | pb_common.c | 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()
|
D | pb.h | 366 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); member 407 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); member
|
/nanopb-2.7.6/tests/regression/issue_342/ |
D | test_extensions.c | 27 callback_def.funcs.encode = &write_string; in main()
|
/nanopb-2.7.6/tests/regression/issue_249/ |
D | test.c | 42 msg.submsg.foo.funcs.encode = &write_array; in main()
|
/nanopb-2.7.6/examples/simple/ |
D | README.txt | 10 * pb_encode() to encode a message
|
/nanopb-2.7.6/tests/encode_unittests/ |
D | encode_unittests.c | 320 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/alltypes_proto3/ |
D | SConscript | 13 # Re-encode the data using protoc, and check that the results from nanopb
|
/nanopb-2.7.6/tests/common/ |
D | SConscript | 5 # Protocol definitions for the encode/decode_unittests
|
/nanopb-2.7.6/tests/alltypes/ |
D | SConscript | 14 # Re-encode the data using protoc, and check that the results from nanopb
|
/nanopb-2.7.6/tests/without_64bit/ |
D | SConscript | 29 # Re-encode the data using protoc, and check that the results from nanopb
|
/nanopb-2.7.6/docs/ |
D | index.md | 20 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:
|
D | concepts.md | 253 bool (*encode)(pb_ostream_t *stream, const pb_field_iter_t *field, void * const *arg); 266 Usually you can use [pb_encode_tag_for_field](reference.html#pb-encode-tag-for-field) to 267 encode the wire type and tag number of the field. However, if you want 268 to encode a repeated field as a packed array, you must call 269 [pb_encode_tag](reference.html#pb-encode-tag) instead to specify a 273 times during a single call to [pb_encode](reference.html#pb-encode). In
|
D | reference.md | 323 bool (*encode)(pb_ostream_t *stream, const pb_field_iter_t *field, void * const *arg); 338 When calling [pb_encode](#pb_encode), `funcs.encode` is used, and 365 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); 550 can call exactly one of the content-writing functions to encode the 617 | value | Value to encode, cast to `uint64_t`. 621 > To encode signed values, the argument should be cast to `int64_t` first for correct sign extensio… 683 | value | Float value to encode. 701 the submessage contents. Therefore, this function has to encode the
|
D | migration.md | 37 **Error indications:** Messages may fail to encode or decode, or the 473 represent `bytes` fields. This made it easy to encode data from a 527 pointer type, when initializing `funcs.encode` or `funcs.decode`.
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb.h | 366 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); member 407 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); member
|