Home
last modified time | relevance | path

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

123

/nanopb-3.4.0/tests/cxx_descriptor/
Dmessage_descriptor.cc22 TEST(MessageDescriptor<MyEmptyMessage>::fields() == MyEmptyMessage_fields); in main()
23 TEST(MessageDescriptor<MyNonEmptyMessage>::fields() == in main()
/nanopb-3.4.0/
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);
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…
114 void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
DCHANGELOG.txt71 Fix unordered field numbers inside oneof causing fields to be ignored (#617)
72 Fix pb_decode() not initializing fields inside oneof (#635
89 Add support for proto3 optional fields introduced in protoc 3.12 (#591)
125 Fix segfault with pointer fields and proto3_singular_msgs = true. (#504,#505)
142 Set proto2 enum fields to first value when no default is given, even if nonzero (#532,#539)
161 Avoid overflows in allocation for packed fields.
178 Detect invalid wire type when decoding fields.
248 Avoid overflows in allocation for packed fields.
251 Fix undefined behavior with bool fields (#434)
259 Fix fixed size and callback repeated fields inside proto3 submessages (#376, #382, #386)
[all …]
/nanopb-3.4.0/spm_headers/nanopb/
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);
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…
114 void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
/nanopb-3.4.0/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-3.4.0/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.md15 * `PB_MAX_REQUIRED_FIELDS`: Maximum number of proto2 `required` fields to check for presence. Defau…
16 * `PB_FIELD_32BIT`: Add support for field tag numbers over 65535, fields larger than 64 kiB and arr…
20 * `PB_WITHOUT_64BIT`: Disable support of 64-bit integer fields, for old compilers or for a slight s…
40 * `max_size`: Allocated maximum size for `bytes` and `string` fields. For strings, this includes th…
41 * `max_length`: Maximum length for `string` fields. Setting this is equivalent to setting `max_size…
42 * `max_count`: Allocated maximum number of entries in arrays (`repeated` fields).
47 * `no_unions`: Generate `oneof` fields as multiple optional fields instead of a C `union {}`.
48 * `anonymous_oneof`: Generate `oneof` fields as an anonymous union.
50 * `fixed_length`: Generate `bytes` fields with a constant length defined by `max_size`. A separate …
60 applying same options to multiple fields.
[all …]
/nanopb-3.4.0/tests/enum_minmax/
DSConscript1 # Test that different sizes of enum fields are properly encoded and decoded.
/nanopb-3.4.0/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-3.4.0/tests/regression/issue_125/
DSConscript1 # Regression test for Issue 125: Wrong identifier name for extension fields
/nanopb-3.4.0/tests/io_errors_pointers/
Dalltypes.options1 # Generate all fields as pointers.
/nanopb-3.4.0/tests/any_type/
Danytest.proto13 // the type_url and value fields, and then call pb_decode() again on the value.
16 // values it is preferable to use callbacks on the fields instead.
/nanopb-3.4.0/tests/fuzztest/
Dalltypes_pointer.options1 # Generate all fields as pointers.
/nanopb-3.4.0/tests/alltypes_callback/
Dalltypes.options1 # Generate all fields as callbacks.
/nanopb-3.4.0/tests/regression/issue_692/
DSConscript2 # Duplicate declarations of size_unions with repeated fields inside a oneof
/nanopb-3.4.0/tests/regression/issue_407/
DSConscript1 # Regression test for issue #407: Extension fields > 255 not parsed correctly
/nanopb-3.4.0/tests/regression/issue_249/
DSConscript1 # Regression test for Issue 249: proto3 mode pb_decode() corrupts callback fields
/nanopb-3.4.0/tests/missing_fields/
DSConscript1 # Check that the decoder properly detects when required fields are missing.
/nanopb-3.4.0/tests/regression/issue_205/
DSConscript1 # Check that pb_release() correctly handles corrupted size fields of
/nanopb-3.4.0/tests/regression/issue_229/
DSConscript2 # multiple oneof fields
/nanopb-3.4.0/tests/enum_sizes/
DSConscript1 # Test that different sizes of enum fields are properly encoded and decoded.
/nanopb-3.4.0/tests/cyclic_messages/
DSConscript3 # Encode cyclic messages with callback fields

123