Lines Matching refs:field

16 * `PB_FIELD_32BIT`: Add support for field tag numbers over 65535, fields larger than 64 kiB and arr…
37 Most options are related to specific message or field in `.proto` file.
43field. Default value is `FT_DEFAULT`, which defaults to `FT_STATIC` when possible and `FT_CALLBACK…
50 …` fields with a constant length defined by `max_size`. A separate `.size` field will then not be g…
53 * `int_size`: Override the integer type of a field. For example, specify `int_size = IS_8` to conve…
91 - All other lines should start with a field name pattern, followed by
93 - The field name pattern is matched against a string of form
94 `Message.field`. For nested messages, the string is
95 `Message.SubMessage.field`. A whole file can be matched by its
97 - The field name pattern may use the notation recognized by Python
149 The options can be defined in file, message and field scopes:
198 Type used to store the type of each field, to control the
204 can be used for encoding and decoding the field data:
214 | `PB_LTYPE_BYTES` |0x06 |Structure with `size_t` field and byte array.
221 The bits 4-5 define whether the field is required, optional or repeated.
228 |`PB_HTYPE_REQUIRED` |0x00 |Verify that field exists in decoded message.
229 …|`PB_HTYPE_OPTIONAL` |0x10 |Use separate `has_<field>` boolean to specify whether the field is …
230 |`PB_HTYPE_SINGULAR` |0x10 |Proto3 field, which is present when its value is non-zero.
231 …|`PB_HTYPE_REPEATED` |0x20 |A repeated field with preallocated array. Separate `<field>_count` …
232 |`PB_HTYPE_FIXARRAY` |0x20 |A repeated field that has constant length.
233 |`PB_HTYPE_ONEOF` |0x30 |Oneof-field, only one of each group can be present.
235 The bits 6-7 define the how the storage for the field is allocated:
240 |`PB_ATYPE_POINTER` |0x80 |Dynamically allocated storage. Struct field contains a pointer to th…
241 |`PB_ATYPE_CALLBACK` |0x40 |A field with dynamic storage size. Struct field contains a pointer t…
246 pointers to the field descriptors. Use functions defined in
247 `pb_common.h` to process the field information.
256 …bool (*field_callback)(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_iter_t *field);
262 |`field_info` | Pointer to compact representation of the field information.
265 …n this message. By default `pb_default_field_callback()` which loads per-field callbacks from a `…
269 Describes a single structure field with memory position in relation to
270 others. The field information is stored in a compact format and loaded
297 | descriptor | Pointer to `pb_msgdesc_t` for the message that contains this field.
299 | index | Index of the field inside the message
303 | tag | Tag number defined in `.proto` file for this field.
304 | data_size | `sizeof()` of the field in the structure. For repeated fields this is for …
306 | type | Type ([pb_type_t](#pb_type_t)) of the field.
307 | pField | Pointer to the field storage in the structure.
309 | pSize | Pointer to count or has field, or NULL if this field doesn't have such.
317 An byte array with a field for storing the length:
335 bool (*decode)(pb_istream_t *stream, const pb_field_iter_t *field, void **arg);
336 bool (*encode)(pb_ostream_t *stream, const pb_field_iter_t *field, void * const *arg);
344 this is a double pointer. If you set `field.arg` to point to
349 *arg = newdata; /* Alters value of field.arg in structure */
355 field.
371 Defines the handler functions and auxiliary data for a field that
385 that describes the field in question.
390 unknown field when decoding.
394 Ties together the extension field type and the storage for the field
396 add a `pb_extension_t*` field. It should point to a linked list of
409 | dest | Pointer to the variable that stores the field value (as used by the defaul…
457 | width | Number of words per field descriptor, or `AUTO` to use minimum size possib…
468 stores the pointer in stream `state` field. :
517 and serializes each field in turn. However, submessages must be
552 … | True on success, false on detectable errors in field description or if a field encod…
554 ### Callback field encoders
561 The tag of a field must be encoded first with
564 payload of the field. For repeated fields, you can repeat this process
581 Starts a field in the Protocol Buffers binary format: encodes the field
590 | field_number | Identifier for the field, defined in the .proto file. You can get it from …
598 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field);
603 | field | Field iterator for this field.
604 | returns | True on success, false on IO error or unknown field type.
606 This function only considers the `PB_LTYPE` of the field. You can use it from
607 your field callbacks, because the source generator writes correct `LTYPE`
701 Encodes a submessage field, including the size header for it. Works for
773 `has_<field>` to false if the field is not present.
827 Decode the tag that comes before field in the protobuf encoding:
834 | wire_type | Pointer to variable where to store the wire type of the field.
835 | tag | Pointer to variable where to store the tag of the field.
844 Remove the data for a field from the stream, without actually decoding it:
851 | wire_type | Type of field to skip.
858 ### Callback field decoders
954 Decode the length for a field with wire type `PB_WT_STRING` and create
1002 Advance to the next field in the message:
1009 | returns | True on success, false after last field in the message.
1011 When the last field in the message has been processed, this function
1012 will return false and initialize `iter` back to the first field in the
1017 Find a field specified by tag number in the message:
1025 | returns | True if field was found, false otherwise.