Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 59) sorted by relevance

123

/nanopb-2.7.6/
Dpb_decode.h74 bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct);
102 bool pb_decode_ex(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int…
115 void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
118 #define pb_release(fields, dest_struct) PB_UNUSED(fields); PB_UNUSED(dest_struct); argument
Dpb_encode.h67 bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct);
83 bool pb_encode_ex(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct, unsigne…
91 bool pb_get_encoded_size(size_t *size, const pb_msgdesc_t *fields, const void *src_struct);
179 bool pb_encode_submessage(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct);
DCHANGELOG.txt3 Fix unordered field numbers inside oneof causing fields to be ignored (#617)
4 Fix pb_decode() not initializing fields inside oneof (#635
21 Add support for proto3 optional fields introduced in protoc 3.12 (#591)
57 Fix segfault with pointer fields and proto3_singular_msgs = true. (#504,#505)
74 Set proto2 enum fields to first value when no default is given, even if nonzero (#532,#539)
93 Avoid overflows in allocation for packed fields.
110 Detect invalid wire type when decoding fields.
173 Avoid overflows in allocation for packed fields.
176 Fix undefined behavior with bool fields (#434)
184 Fix fixed size and callback repeated fields inside proto3 submessages (#376, #382, #386)
[all …]
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_decode.h74 bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct);
102 bool pb_decode_ex(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int…
115 void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
118 #define pb_release(fields, dest_struct) PB_UNUSED(fields); PB_UNUSED(dest_struct); argument
Dpb_encode.h67 bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct);
83 bool pb_encode_ex(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct, unsigne…
91 bool pb_get_encoded_size(size_t *size, const pb_msgdesc_t *fields, const void *src_struct);
179 bool pb_encode_submessage(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct);
/nanopb-2.7.6/tests/cxx_descriptor/
Dmessage_descriptor.cc22 TEST(MessageDescriptor<MyEmptyMessage>::fields() == MyEmptyMessage_fields); in main()
23 TEST(MessageDescriptor<MyNonEmptyMessage>::fields() == in main()
/nanopb-2.7.6/generator/proto/
Dnanopb.proto39 DS_1 = 1; // 1 word; up to 15 byte fields, no arrays
40 DS_2 = 2; // 2 words; up to 4095 byte fields, 4095 entry arrays
41 DS_4 = 4; // 4 words; up to 2^32-1 byte fields, 2^16-1 entry arrays
47 // fields.
49 // Allocated size for 'bytes' and 'string' fields.
50 // For string fields, this should include the space for null terminator.
53 // Maximum length for 'string' fields. Setting this is equivalent
57 // Allocated number of entries in arrays ('repeated' fields)
60 // Size of integer fields. Can save some memory if you don't need
81 // Generate oneof fields as normal optional fields instead of union.
[all …]
/nanopb-2.7.6/docs/
Dsecurity.md24 1. Callback, pointer and extension fields in message structures given
25 to pb_encode() and pb_decode(). These fields are memory pointers,
40 2. All fields in message structures, except:
42 - pointer fields and `_count` fields for pointers
59 - The `count` fields of arrays will not exceed the array size.
61 - All string fields will have null terminator.
62 - bool fields will have valid true/false values (since
64 - pointer fields will be either `NULL` or point to valid data
80 Tests should be run with all fields present, to record the maximum
Dreference.md14 * `PB_MAX_REQUIRED_FIELDS`: Maximum number of proto2 `required` fields to check for presence. Defau…
15 * `PB_FIELD_32BIT`: Add support for field tag numbers over 65535, fields larger than 64 kiB and arr…
19 * `PB_WITHOUT_64BIT`: Disable support of 64-bit integer fields, for old compilers or for a slight s…
35 * `max_size`: Allocated maximum size for `bytes` and `string` fields. For strings, this includes th…
36 * `max_length`: Maximum length for `string` fields. Setting this is equivalent to setting `max_size…
37 * `max_count`: Allocated maximum number of entries in arrays (`repeated` fields).
42 * `no_unions`: Generate `oneof` fields as multiple optional fields instead of a C `union {}`.
43 * `anonymous_oneof`: Generate `oneof` fields as an anonymous union.
45 * `fixed_length`: Generate `bytes` fields with a constant length defined by `max_size`. A separate …
55 applying same options to multiple fields.
[all …]
/nanopb-2.7.6/tests/enum_minmax/
DSConscript1 # Test that different sizes of enum fields are properly encoded and decoded.
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Dalltypes.options1 # Generate all fields as callbacks.
DSConscript1 # Test the AllTypes encoding & decoding using callbacks for all fields.
19 # Do the same thing with the optional fields present
/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/io_errors_pointers/
Dalltypes.options1 # Generate all fields as pointers.
/nanopb-2.7.6/tests/any_type/
Danytest.proto13 // the type_url and value fields, and then call pb_decode() again on the value.
16 // values it is preferrable to use callbacks on the fields instead.
/nanopb-2.7.6/tests/fuzztest/
Dalltypes_pointer.options1 # Generate all fields as pointers.
/nanopb-2.7.6/tests/alltypes_callback/
Dalltypes.options1 # Generate all fields as callbacks.
/nanopb-2.7.6/tests/regression/issue_407/
DSConscript1 # Regression test for issue #407: Extension fields > 255 not parsed correctly
/nanopb-2.7.6/tests/regression/issue_249/
DSConscript1 # Regression test for Issue 249: proto3 mode pb_decode() corrupts callback fields
/nanopb-2.7.6/tests/missing_fields/
DSConscript1 # Check that the decoder properly detects when required fields are missing.
/nanopb-2.7.6/tests/regression/issue_205/
DSConscript1 # Check that pb_release() correctly handles corrupted size fields of
/nanopb-2.7.6/tests/regression/issue_229/
DSConscript2 # multiple oneof fields
/nanopb-2.7.6/tests/enum_sizes/
DSConscript1 # Test that different sizes of enum fields are properly encoded and decoded.
/nanopb-2.7.6/tests/cyclic_messages/
DSConscript3 # Encode cyclic messages with callback fields
/nanopb-2.7.6/tests/alltypes_pointer/
Dalltypes.options1 # Generate all fields as pointers.

123