Home
last modified time | relevance | path

Searched refs:length (Results 1 – 14 of 14) sorted by relevance

/nanopb-2.7.6/tests/callbacks/
Ddecode_callbacks.c61 size_t length; in main() local
70 length = fread(buffer, 1, 1024, stdin); in main()
71 stream = pb_istream_from_buffer(buffer, length); in main()
/nanopb-2.7.6/docs/
Dconcepts.md65 5) Always read or write the full requested length of data. For example,
113 6) You don't need to know the length of the message in advance. After
160 variable-length datatypes are more complex:
185 **String with unknown length:**\
189 **String with known maximum length:**\
205 **Bytes field with fixed length:**\
218 exceeds the allocated length, `pb_decode()` will return false.
220 > **Note:** For the `bytes` datatype, the field length checking may not be
223 structure size is padding. Therefore it uses the whole length of the
227 bytes there. For the `string` field type, the length limit is exact.
[all …]
Dreference.md36 * `max_length`: Maximum length for `string` fields. Setting this is equivalent to setting `max_size…
45 * `fixed_length`: Generate `bytes` fields with a constant length defined by `max_size`. A separate …
46 * `fixed_count`: Generate arrays with constant length defined by `max_count`.
219 |`PB_HTYPE_FIXARRAY` |0x20 |A repeated field that has constant length.
304 An byte array with a field for storing the length:
311 In an actual array, the length of `bytes` may be different. The macros
313 are used to allocate variable length storage for bytes fields.
467 message length on decoding side.
481 | returns | True on success, false if maximum length is exceeded or an IO error happen…
525 * `PB_ENCODE_DELIMITED`: Indicate the length of the message by prefixing with a varint-encoded leng…
[all …]
Dwhats_new.md29 platform. Now information about fields is stored as a variable length
34 One benefit of the variable length format is that most messages now take
Dmigration.md79 `uint32_t` array in a variable-length format. Old
153 strings and assume that they are the full length of the defined array.
160 option `max_length` can be used to define the maximum string length,
/nanopb-2.7.6/tests/field_size_32/
Dalltypes.proto138 // Second fixed length array field to test the length check logic.
/nanopb-2.7.6/tests/field_size_16/
Dalltypes.proto138 // Second fixed length array field to test the length check logic.
/nanopb-2.7.6/tests/site_scons/platforms/stm32/
Dstm32_ram.ld4 * FLASH.LENGTH: length of flash
6 * RAM.LENGTH: length of RAM bank 0
/nanopb-2.7.6/tests/alltypes/
Dalltypes.proto140 // Second fixed length array field to test the length check logic.
/nanopb-2.7.6/generator/proto/
Dnanopb.proto53 // Maximum length for 'string' fields. Setting this is equivalent
54 // to setting max_size to a value of length+1.
100 // Generate bytes arrays with fixed length
/nanopb-2.7.6/
Dpb_decode.c276 uint32_t length; in pb_skip_string() local
277 if (!pb_decode_varint32(stream, &length)) in pb_skip_string()
280 if ((size_t)length != length) in pb_skip_string()
285 return pb_read(stream, NULL, (size_t)length); in pb_skip_string()
DCHANGELOG.txt178 Fix network_server socket example with zero-length strings (#421)
237 Extend inline / fixed length bytes array support (#244)
/nanopb-2.7.6/tests/any_type/google/protobuf/
Dduration.proto43 // A Duration represents a signed, fixed-length span of time represented
/nanopb-2.7.6/generator/proto/google/protobuf/
Ddescriptor.proto513 // a single length-delimited blob. In proto3, only explicit setting it to
869 // the last relevant byte (so the length of the text = end - begin).