/nanopb-3.4.0/ |
D | pb_common.h | 19 bool pb_field_iter_begin_extension(pb_field_iter_t *iter, pb_extension_t *extension); 25 bool pb_field_iter_begin_extension_const(pb_field_iter_t *iter, const pb_extension_t *extension);
|
D | pb_common.c | 166 bool pb_field_iter_begin_extension(pb_field_iter_t *iter, pb_extension_t *extension) in pb_field_iter_begin_extension() argument 168 const pb_msgdesc_t *msg = (const pb_msgdesc_t*)extension->type->arg; in pb_field_iter_begin_extension() 177 status = pb_field_iter_begin(iter, msg, &extension->dest); in pb_field_iter_begin_extension() 181 status = pb_field_iter_begin(iter, msg, extension->dest); in pb_field_iter_begin_extension() 184 iter->pSize = &extension->found; in pb_field_iter_begin_extension() 295 bool pb_field_iter_begin_extension_const(pb_field_iter_t *iter, const pb_extension_t *extension) in pb_field_iter_begin_extension_const() argument 297 return pb_field_iter_begin_extension(iter, (pb_extension_t*)pb_const_cast(extension)); in pb_field_iter_begin_extension_const()
|
D | pb_encode.c | 30 … bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *extension); 342 const pb_extension_t *extension = *(const pb_extension_t* const *)field->pData; in pb_check_proto3_default_value() local 343 return extension == NULL; in pb_check_proto3_default_value() 473 …c bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *extension) in default_extension_encoder() argument 477 if (!pb_field_iter_begin_extension_const(&iter, extension)) in default_extension_encoder() 488 const pb_extension_t *extension = *(const pb_extension_t* const *)field->pData; in encode_extension_field() local 490 while (extension) in encode_extension_field() 493 if (extension->type->encode) in encode_extension_field() 494 status = extension->type->encode(stream, extension); in encode_extension_field() 496 status = default_extension_encoder(stream, extension); in encode_extension_field() [all …]
|
D | pb_decode.c | 32 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, … 33 …extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_extension_t *extension); 829 pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type) in default_extension_decoder() argument 833 if (!pb_field_iter_begin_extension(&iter, extension)) in default_extension_decoder() 839 extension->found = true; in default_extension_decoder() 846 uint32_t tag, pb_wire_type_t wire_type, pb_extension_t *extension) in decode_extension() argument 850 while (extension != NULL && pos == stream->bytes_left) in decode_extension() 853 if (extension->type->decode) in decode_extension() 854 status = extension->type->decode(stream, extension, tag, wire_type); in decode_extension() 856 status = default_extension_decoder(stream, extension, tag, wire_type); in decode_extension() [all …]
|
D | CHANGELOG.txt | 283 Add check for large extension field number (issue #306) 308 Zero-valued extension fields were mistakenly ignored by encoder (#242) 392 Initialize also extension fields to defaults in pb_decode(). 440 Fix problem with .options file and extension fields. (issue 125) 455 Fix bug with default values for extension fields (issue 111) 482 Add #define tags for extension fields (issue 93) 489 Don't stop on unsupported extension fields (issue 83) 496 Add support for extension fields (issue 17) 531 Add option to give file extension to generator (by Michael Haberler)
|
D | pb.h | 435 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 444 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb_common.h | 19 bool pb_field_iter_begin_extension(pb_field_iter_t *iter, pb_extension_t *extension); 25 bool pb_field_iter_begin_extension_const(pb_field_iter_t *iter, const pb_extension_t *extension);
|
D | pb.h | 435 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 444 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
|
/nanopb-3.4.0/tests/regression/issue_306/ |
D | SConscript | 1 # Check that generator gives a warning about large extension field number.
|
/nanopb-3.4.0/tests/regression/issue_125/ |
D | SConscript | 1 # Regression test for Issue 125: Wrong identifier name for extension fields
|
/nanopb-3.4.0/tests/regression/issue_242/ |
D | SConscript | 2 # extension fields that is all zeros
|
/nanopb-3.4.0/tests/extensions/ |
D | SConscript | 1 # Test the support for extension fields.
|
/nanopb-3.4.0/tests/cxx_main_program/ |
D | SConscript | 10 # Copy the files to .cxx extension in order to force C++ build.
|
/nanopb-3.4.0/generator/ |
D | nanopb_generator.py | 1650 for extension in desc.extension: 1651 yield names, extension 1654 for extension in subdesc.extension: 1655 yield subname, extension 1829 for names, extension in iterate_extensions(self.fdesc, self.manglenames.flatten): 1830 name = self.manglenames.create_name(names + extension.name) 1831 field_options = get_nanopb_suboptions(extension, self.file_options, name) 1833 extension = copy.deepcopy(extension) 1834 if extension.type in (FieldD.TYPE_MESSAGE, FieldD.TYPE_ENUM): 1835 extension.type_name = self.manglenames.mangle_field_typename(extension.type_name) [all …]
|
/nanopb-3.4.0/generator/proto/google/protobuf/ |
D | descriptor.proto | 77 repeated FieldDescriptorProto extension = 7; field 97 repeated FieldDescriptorProto extension = 6; field 115 // fields or extension ranges in the same message. Reserved ranges may 306 // independent entities, e-mail protobuf-global-extension-registry@google.com 307 // to reserve extension numbers. Simply provide your project name (e.g. 310 // extension number. You can declare multiple options with only one extension 349 // However, an extension field still accepts non-UTF-8 byte sequences. 367 // - Otherwise, the basename of the .proto file, without extension. 693 // extension (denoted with parentheses in options specs in .proto files). 743 // extend block (possibly containing multiple extension definitions) will [all …]
|
/nanopb-3.4.0/docs/ |
D | security.md | 24 1. Callback, pointer and extension fields in message structures given
|
D | reference.md | 376 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 378 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); 394 Ties together the extension field type and the storage for the field 409 …ter to the variable that stores the field value (as used by the default extension callback functio… 410 | next | Pointer to the next extension handler, or `NULL` for last handler. 411 | found | Decoder sets this to true if the extension was found. 634 …To encode signed values, the argument should be cast to `int64_t` first for correct sign extension.
|
D | index.md | 56 oneofs, packed arrays, extension fields.
|
D | concepts.md | 467 Protocol Buffers supports a concept of [extension 498 For each extension, `nanopb_generator.py` creates a constant of type 500 extension, you have to:
|
D | migration.md | 510 (like in default extension .pb.c). The `-e` option to the generator 511 allowed changing the extension, but not skipping the extra dot.
|
/nanopb-3.4.0/generator/proto/ |
D | nanopb.proto | 161 // Protocol Buffers extension number registry
|