SofaBuffers C/C++ 0.12.0
API Documentation
Loading...
Searching...
No Matches
sofab_object_descr Struct Reference

Description of a SofaBuffer object structure. More...

#include <object.h>

Collaboration diagram for sofab_object_descr:
[legend]

Data Fields

const sofab_object_descr_field_t *const field_list
 
const struct sofab_object_descr *const * nested_list
 
const void *const default_values
 
const uint16_t count_extent
 
const uint8_t nested_count
 
const uint8_t fixed_seq
 

Detailed Description

Description of a SofaBuffer object structure.

Definition at line 693 of file object.h.

Field Documentation

◆ count_extent

const uint16_t sofab_object_descr::count_extent

Field count and, for an object that is not a wrapper-array holder, the byte extent of default_values – two things in one 16-bit slot, which is what keeps this descriptor 16 bytes wide on a 32-bit target.

Read it through _field_count() and _default_extent(), never directly.

Definition at line 717 of file object.h.

◆ default_values

const void* const sofab_object_descr::default_values

Pointer to default values for fields (optional, may be NULL)

Definition at line 697 of file object.h.

◆ field_list

const sofab_object_descr_field_t* const sofab_object_descr::field_list

Pointer to list of field descriptors

Definition at line 695 of file object.h.

◆ fixed_seq

const uint8_t sofab_object_descr::fixed_seq

Wrapper-array holder marker: bit 0 (SOFAB_OBJECT_SEQ_HOLDER) flags the holder — reject an unmatched (over-index) element id instead of skipping it, unless §7.3 already skips it on a contradicting wire type/subtype; the bits above SOFAB_OBJECT_SEQ_LEN_SHIFT carry the byte width of the companion element-count member (0 = un-sized, see SOFAB_OBJECT_DESCR_SEQ_SIZED)

Definition at line 719 of file object.h.

◆ nested_count

const uint8_t sofab_object_descr::nested_count

Number of nested objects

Definition at line 718 of file object.h.

◆ nested_list

const struct sofab_object_descr* const* sofab_object_descr::nested_list

Pointer to list of nested object descriptors

Definition at line 696 of file object.h.


The documentation for this struct was generated from the following file: