Lines Matching refs:length
41 * `max_length`: Maximum length for `string` fields. Setting this is equivalent to setting `max_size…
50 * `fixed_length`: Generate `bytes` fields with a constant length defined by `max_size`. A separate …
51 * `fixed_count`: Generate arrays with constant length defined by `max_count`.
232 |`PB_HTYPE_FIXARRAY` |0x20 |A repeated field that has constant length.
317 An byte array with a field for storing the length:
324 In an actual array, the length of `bytes` may be different. The macros
326 are used to allocate variable length storage for bytes fields.
480 message length on decoding side.
494 | returns | True on success, false if maximum length is exceeded or an IO error happen…
538 * `PB_ENCODE_DELIMITED`: Indicate the length of the message by prefixing with a varint-encoded leng…
539 * `PB_ENCODE_NULLTERMINATED`: Indicate the length of the message by appending a zero tag value afte…
543 Calculates the length of the encoded message.
647 Writes the length of a string as varint and then contents of the string.
734 | bufsize | Size of the byte array. Typically length of the message to be decoded.
798 * `PB_DECODE_DELIMITED`: Expect a length prefix in varint format before message. The counterpart of…
855 For `PB_WT_STRING`, it will read the length prefix of a string or submessage
856 to determine its length.
869 …decoding strings and bytes fields, the length has already been decoded and the callback function i…
870 You can therefore check the total length in `stream->bytes_left` and read the data using [pb_read](…
954 Decode the length for a field with wire type `PB_WT_STRING` and create
961 | stream | Original input stream to read the length and data from.
962 | substream | Storage for a new substream that has limited length. Filled in by the func…
963 | returns | True on success, false if reading the length fails.
967 length, and its callback function and state the same as the parent stream.