/nanopb-2.7.6/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 | 398 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 407 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
|
/nanopb-2.7.6/ |
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); 340 const pb_extension_t *extension = *(const pb_extension_t* const *)field->pData; in pb_check_proto3_default_value() local 341 return extension == NULL; in pb_check_proto3_default_value() 471 …c bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *extension) in default_extension_encoder() argument 475 if (!pb_field_iter_begin_extension_const(&iter, extension)) in default_extension_encoder() 486 const pb_extension_t *extension = *(const pb_extension_t* const *)field->pData; in encode_extension_field() local 488 while (extension) in encode_extension_field() 491 if (extension->type->encode) in encode_extension_field() 492 status = extension->type->encode(stream, extension); in encode_extension_field() 494 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); 818 pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type) in default_extension_decoder() argument 822 if (!pb_field_iter_begin_extension(&iter, extension)) in default_extension_decoder() 828 extension->found = true; in default_extension_decoder() 835 uint32_t tag, pb_wire_type_t wire_type, pb_extension_t *extension) in decode_extension() argument 839 while (extension != NULL && pos == stream->bytes_left) in decode_extension() 842 if (extension->type->decode) in decode_extension() 843 status = extension->type->decode(stream, extension, tag, wire_type); in decode_extension() 845 status = default_extension_decoder(stream, extension, tag, wire_type); in decode_extension() [all …]
|
D | CHANGELOG.txt | 208 Add check for large extension field number (issue #306) 233 Zero-valued extension fields were mistakenly ignored by encoder (#242) 317 Initialize also extension fields to defaults in pb_decode(). 365 Fix problem with .options file and extension fields. (issue 125) 380 Fix bug with default values for extension fields (issue 111) 407 Add #define tags for extension fields (issue 93) 414 Don't stop on unsupported extension fields (issue 83) 421 Add support for extension fields (issue 17) 456 Add option to give file extension to generator (by Michael Haberler)
|
D | pb.h | 398 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 407 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
|
/nanopb-2.7.6/tests/regression/issue_306/ |
D | SConscript | 1 # Check that generator gives a warning about large extension field number.
|
/nanopb-2.7.6/tests/regression/issue_125/ |
D | SConscript | 1 # Regression test for Issue 125: Wrong identifier name for extension fields
|
/nanopb-2.7.6/tests/regression/issue_242/ |
D | SConscript | 2 # extension fields that is all zeros
|
/nanopb-2.7.6/tests/extensions/ |
D | SConscript | 1 # Test the support for extension fields.
|
/nanopb-2.7.6/tests/cxx_main_program/ |
D | SConscript | 10 # Copy the files to .cxx extension in order to force C++ build.
|
/nanopb-2.7.6/generator/ |
D | nanopb_generator.py | 1508 for extension in desc.extension: 1509 yield names, extension 1512 for extension in subdesc.extension: 1513 yield subname, extension 1654 for names, extension in iterate_extensions(self.fdesc, flatten): 1655 name = create_name(names + extension.name) 1656 field_options = get_nanopb_suboptions(extension, self.file_options, name) 1658 extension = copy.deepcopy(extension) 1659 if extension.type in (FieldD.TYPE_MESSAGE, FieldD.TYPE_ENUM): 1660 extension.type_name = mangle_field_typename(extension.type_name) [all …]
|
/nanopb-2.7.6/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-2.7.6/docs/ |
D | security.md | 24 1. Callback, pointer and extension fields in message structures given
|
D | reference.md | 363 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension, 365 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); 381 Ties together the extension field type and the storage for the field 396 …ter to the variable that stores the field value (as used by the default extension callback functio… 397 | next | Pointer to the next extension handler, or `NULL` for last handler. 398 | found | Decoder sets this to true if the extension was found. 621 …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 | 466 Protocol Buffers supports a concept of [extension 497 For each extension, `nanopb_generator.py` creates a constant of type 499 extension, you have to:
|
D | migration.md | 453 (like in default extension .pb.c). The `-e` option to the generator 454 allowed changing the extension, but not skipping the extra dot.
|
/nanopb-2.7.6/generator/proto/ |
D | nanopb.proto | 155 // Protocol Buffers extension number registry
|