Home
last modified time | relevance | path

Searched refs:extension (Results 1 – 21 of 21) sorted by relevance

/nanopb-2.7.6/spm_headers/nanopb/
Dpb_common.h19 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);
Dpb.h398 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/
Dpb_common.h19 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);
Dpb_common.c166 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()
Dpb_encode.c30 … 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 …]
Dpb_decode.c32 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 …]
DCHANGELOG.txt208 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)
Dpb.h398 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/
DSConscript1 # Check that generator gives a warning about large extension field number.
/nanopb-2.7.6/tests/regression/issue_125/
DSConscript1 # Regression test for Issue 125: Wrong identifier name for extension fields
/nanopb-2.7.6/tests/regression/issue_242/
DSConscript2 # extension fields that is all zeros
/nanopb-2.7.6/tests/extensions/
DSConscript1 # Test the support for extension fields.
/nanopb-2.7.6/tests/cxx_main_program/
DSConscript10 # Copy the files to .cxx extension in order to force C++ build.
/nanopb-2.7.6/generator/
Dnanopb_generator.py1508 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/
Ddescriptor.proto77 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/
Dsecurity.md24 1. Callback, pointer and extension fields in message structures given
Dreference.md363 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.
Dindex.md56 oneofs, packed arrays, extension fields.
Dconcepts.md466 Protocol Buffers supports a concept of [extension
497 For each extension, `nanopb_generator.py` creates a constant of type
499 extension, you have to:
Dmigration.md453 (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/
Dnanopb.proto155 // Protocol Buffers extension number registry