MOS Source Code
Loading...
Searching...
No Matches
pb.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <limits.h>
+ Include dependency graph for pb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pb_msgdesc_t
 
struct  pb_field_iter_t
 
struct  pb_bytes_array_t
 
struct  pb_callback_t
 
struct  pb_extension_type_t
 
struct  pb_extension_t
 

Macros

#define NANOPB_VERSION   "nanopb-0.4.9-dev"
 
#define PB_PACKED_STRUCT_START
 
#define PB_PACKED_STRUCT_END
 
#define pb_packed
 
#define PB_UNUSED(x)
 
#define PB_PROGMEM
 
#define PB_PROGMEM_READU32(x)
 
#define PB_STATIC_ASSERT(COND, MSG)
 
#define PB_MAX_REQUIRED_FIELDS   64
 
#define PB_LTYPE_BOOL   0x00U /* bool */
 
#define PB_LTYPE_VARINT   0x01U /* int32, int64, enum, bool */
 
#define PB_LTYPE_UVARINT   0x02U /* uint32, uint64 */
 
#define PB_LTYPE_SVARINT   0x03U /* sint32, sint64 */
 
#define PB_LTYPE_FIXED32   0x04U /* fixed32, sfixed32, float */
 
#define PB_LTYPE_FIXED64   0x05U /* fixed64, sfixed64, double */
 
#define PB_LTYPE_LAST_PACKABLE   0x05U
 
#define PB_LTYPE_BYTES   0x06U
 
#define PB_LTYPE_STRING   0x07U
 
#define PB_LTYPE_SUBMESSAGE   0x08U
 
#define PB_LTYPE_SUBMSG_W_CB   0x09U
 
#define PB_LTYPE_EXTENSION   0x0AU
 
#define PB_LTYPE_FIXED_LENGTH_BYTES   0x0BU
 
#define PB_LTYPES_COUNT   0x0CU
 
#define PB_LTYPE_MASK   0x0FU
 
#define PB_HTYPE_REQUIRED   0x00U
 
#define PB_HTYPE_OPTIONAL   0x10U
 
#define PB_HTYPE_SINGULAR   0x10U
 
#define PB_HTYPE_REPEATED   0x20U
 
#define PB_HTYPE_FIXARRAY   0x20U
 
#define PB_HTYPE_ONEOF   0x30U
 
#define PB_HTYPE_MASK   0x30U
 
#define PB_ATYPE_STATIC   0x00U
 
#define PB_ATYPE_POINTER   0x80U
 
#define PB_ATYPE_CALLBACK   0x40U
 
#define PB_ATYPE_MASK   0xC0U
 
#define PB_ATYPE(x)
 
#define PB_HTYPE(x)
 
#define PB_LTYPE(x)
 
#define PB_LTYPE_IS_SUBMSG(x)
 
#define PB_SIZE_MAX   ((pb_size_t)-1)
 
#define PB_BYTES_ARRAY_T(n)
 
#define PB_BYTES_ARRAY_T_ALLOCSIZE(n)
 
#define pb_extension_init_zero   {NULL,NULL,NULL,false}
 
#define PB_PROTO_HEADER_VERSION   40
 
#define pb_membersize(st, m)
 
#define pb_arraysize(st, m)
 
#define pb_delta(st, m1, m2)
 
#define PB_EXPAND(x)
 
#define PB_BIND(msgname, structname, width)
 
#define PB_GEN_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_REQ_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_LARGEST_TAG(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_1(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_2(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_4(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_8(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_AUTO(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_GEN_FIELD_INFO_ASSERT_1(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_ASSERT_2(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_ASSERT_4(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_ASSERT_8(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_GEN_FIELD_INFO_ASSERT_AUTO(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_DATA_OFFSET_STATIC(htype, structname, fieldname)
 
#define PB_DATA_OFFSET_POINTER(htype, structname, fieldname)
 
#define PB_DATA_OFFSET_CALLBACK(htype, structname, fieldname)
 
#define PB_DO_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_DO_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_DO_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_DO_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_DO_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_DO_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_SIZE_OFFSET_STATIC(htype, structname, fieldname)
 
#define PB_SIZE_OFFSET_POINTER(htype, structname, fieldname)
 
#define PB_SIZE_OFFSET_CALLBACK(htype, structname, fieldname)
 
#define PB_SO_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_SO_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_SO_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_SO_PB_HTYPE_ONEOF2(structname, fullname, unionname)
 
#define PB_SO_PB_HTYPE_ONEOF3(structname, fullname, unionname)
 
#define PB_SO_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_SO_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_SO_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_SO_PTR_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_SO_CB_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_ARRAY_SIZE_STATIC(htype, structname, fieldname)
 
#define PB_ARRAY_SIZE_POINTER(htype, structname, fieldname)
 
#define PB_ARRAY_SIZE_CALLBACK(htype, structname, fieldname)
 
#define PB_AS_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_AS_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_AS_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_AS_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_AS_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_AS_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_AS_PTR_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_DATA_SIZE_STATIC(htype, structname, fieldname)
 
#define PB_DATA_SIZE_POINTER(htype, structname, fieldname)
 
#define PB_DATA_SIZE_CALLBACK(htype, structname, fieldname)
 
#define PB_DS_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_DS_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_DS_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_DS_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_DS_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_DS_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_DS_PTR_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_REQUIRED(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_SINGULAR(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_OPTIONAL(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_ONEOF(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_REPEATED(structname, fieldname)
 
#define PB_DS_CB_PB_HTYPE_FIXARRAY(structname, fieldname)
 
#define PB_ONEOF_NAME(type, tuple)
 
#define PB_ONEOF_NAME_UNION(unionname, membername, fullname)
 
#define PB_ONEOF_NAME_MEMBER(unionname, membername, fullname)
 
#define PB_ONEOF_NAME_FULL(unionname, membername, fullname)
 
#define PB_GEN_SUBMSG_INFO(structname, atype, htype, ltype, fieldname, tag)
 
#define PB_SUBMSG_INFO_REQUIRED(ltype, structname, fieldname)
 
#define PB_SUBMSG_INFO_SINGULAR(ltype, structname, fieldname)
 
#define PB_SUBMSG_INFO_OPTIONAL(ltype, structname, fieldname)
 
#define PB_SUBMSG_INFO_ONEOF(ltype, structname, fieldname)
 
#define PB_SUBMSG_INFO_ONEOF2(ltype, structname, unionname, membername)
 
#define PB_SUBMSG_INFO_ONEOF3(ltype, structname, unionname, membername)
 
#define PB_SUBMSG_INFO_REPEATED(ltype, structname, fieldname)
 
#define PB_SUBMSG_INFO_FIXARRAY(ltype, structname, fieldname)
 
#define PB_SI_PB_LTYPE_BOOL(t)
 
#define PB_SI_PB_LTYPE_BYTES(t)
 
#define PB_SI_PB_LTYPE_DOUBLE(t)
 
#define PB_SI_PB_LTYPE_ENUM(t)
 
#define PB_SI_PB_LTYPE_UENUM(t)
 
#define PB_SI_PB_LTYPE_FIXED32(t)
 
#define PB_SI_PB_LTYPE_FIXED64(t)
 
#define PB_SI_PB_LTYPE_FLOAT(t)
 
#define PB_SI_PB_LTYPE_INT32(t)
 
#define PB_SI_PB_LTYPE_INT64(t)
 
#define PB_SI_PB_LTYPE_MESSAGE(t)
 
#define PB_SI_PB_LTYPE_MSG_W_CB(t)
 
#define PB_SI_PB_LTYPE_SFIXED32(t)
 
#define PB_SI_PB_LTYPE_SFIXED64(t)
 
#define PB_SI_PB_LTYPE_SINT32(t)
 
#define PB_SI_PB_LTYPE_SINT64(t)
 
#define PB_SI_PB_LTYPE_STRING(t)
 
#define PB_SI_PB_LTYPE_UINT32(t)
 
#define PB_SI_PB_LTYPE_UINT64(t)
 
#define PB_SI_PB_LTYPE_EXTENSION(t)
 
#define PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES(t)
 
#define PB_SUBMSG_DESCRIPTOR(t)
 
#define PB_FIELDINFO_1(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_2(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_4(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_8(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FITS(value, bits)
 
#define PB_FIELDINFO_ASSERT_1(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_ASSERT_2(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_ASSERT_4(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_ASSERT_8(tag, type, data_offset, data_size, size_offset, array_size)
 
#define PB_FIELDINFO_WIDTH_AUTO(atype, htype, ltype)
 
#define PB_FI_WIDTH_PB_ATYPE_STATIC(htype, ltype)
 
#define PB_FI_WIDTH_PB_ATYPE_POINTER(htype, ltype)
 
#define PB_FI_WIDTH_PB_ATYPE_CALLBACK(htype, ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_REQUIRED(ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_SINGULAR(ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_OPTIONAL(ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_ONEOF(ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_REPEATED(ltype)
 
#define PB_FI_WIDTH_PB_HTYPE_FIXARRAY(ltype)
 
#define PB_FI_WIDTH_PB_LTYPE_BOOL   1
 
#define PB_FI_WIDTH_PB_LTYPE_BYTES   2
 
#define PB_FI_WIDTH_PB_LTYPE_DOUBLE   1
 
#define PB_FI_WIDTH_PB_LTYPE_ENUM   1
 
#define PB_FI_WIDTH_PB_LTYPE_UENUM   1
 
#define PB_FI_WIDTH_PB_LTYPE_FIXED32   1
 
#define PB_FI_WIDTH_PB_LTYPE_FIXED64   1
 
#define PB_FI_WIDTH_PB_LTYPE_FLOAT   1
 
#define PB_FI_WIDTH_PB_LTYPE_INT32   1
 
#define PB_FI_WIDTH_PB_LTYPE_INT64   1
 
#define PB_FI_WIDTH_PB_LTYPE_MESSAGE   2
 
#define PB_FI_WIDTH_PB_LTYPE_MSG_W_CB   2
 
#define PB_FI_WIDTH_PB_LTYPE_SFIXED32   1
 
#define PB_FI_WIDTH_PB_LTYPE_SFIXED64   1
 
#define PB_FI_WIDTH_PB_LTYPE_SINT32   1
 
#define PB_FI_WIDTH_PB_LTYPE_SINT64   1
 
#define PB_FI_WIDTH_PB_LTYPE_STRING   2
 
#define PB_FI_WIDTH_PB_LTYPE_UINT32   1
 
#define PB_FI_WIDTH_PB_LTYPE_UINT64   1
 
#define PB_FI_WIDTH_PB_LTYPE_EXTENSION   1
 
#define PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES   2
 
#define PB_LTYPE_MAP_BOOL   PB_LTYPE_BOOL
 
#define PB_LTYPE_MAP_BYTES   PB_LTYPE_BYTES
 
#define PB_LTYPE_MAP_DOUBLE   PB_LTYPE_FIXED64
 
#define PB_LTYPE_MAP_ENUM   PB_LTYPE_VARINT
 
#define PB_LTYPE_MAP_UENUM   PB_LTYPE_UVARINT
 
#define PB_LTYPE_MAP_FIXED32   PB_LTYPE_FIXED32
 
#define PB_LTYPE_MAP_FIXED64   PB_LTYPE_FIXED64
 
#define PB_LTYPE_MAP_FLOAT   PB_LTYPE_FIXED32
 
#define PB_LTYPE_MAP_INT32   PB_LTYPE_VARINT
 
#define PB_LTYPE_MAP_INT64   PB_LTYPE_VARINT
 
#define PB_LTYPE_MAP_MESSAGE   PB_LTYPE_SUBMESSAGE
 
#define PB_LTYPE_MAP_MSG_W_CB   PB_LTYPE_SUBMSG_W_CB
 
#define PB_LTYPE_MAP_SFIXED32   PB_LTYPE_FIXED32
 
#define PB_LTYPE_MAP_SFIXED64   PB_LTYPE_FIXED64
 
#define PB_LTYPE_MAP_SINT32   PB_LTYPE_SVARINT
 
#define PB_LTYPE_MAP_SINT64   PB_LTYPE_SVARINT
 
#define PB_LTYPE_MAP_STRING   PB_LTYPE_STRING
 
#define PB_LTYPE_MAP_UINT32   PB_LTYPE_UVARINT
 
#define PB_LTYPE_MAP_UINT64   PB_LTYPE_UVARINT
 
#define PB_LTYPE_MAP_EXTENSION   PB_LTYPE_EXTENSION
 
#define PB_LTYPE_MAP_FIXED_LENGTH_BYTES   PB_LTYPE_FIXED_LENGTH_BYTES
 
#define PB_SET_ERROR(stream, msg)
 
#define PB_GET_ERROR(stream)
 
#define PB_RETURN_ERROR(stream, msg)
 

Enumerations

enum  pb_wire_type_t {
  PB_WT_VARINT = 0 , PB_WT_64BIT = 1 , PB_WT_STRING = 2 , PB_WT_32BIT = 5 ,
  PB_WT_PACKED = 255
}
 

Functions

bool pb_default_field_callback (pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_t *field)
 

Macro Definition Documentation

◆ NANOPB_VERSION

#define NANOPB_VERSION   "nanopb-0.4.9-dev"

Definition at line 68 of file pb.h.

◆ PB_PACKED_STRUCT_START

#define PB_PACKED_STRUCT_START

Definition at line 124 of file pb.h.

◆ PB_PACKED_STRUCT_END

#define PB_PACKED_STRUCT_END

Definition at line 125 of file pb.h.

◆ pb_packed

#define pb_packed

Definition at line 126 of file pb.h.

◆ PB_UNUSED

#define PB_UNUSED ( x)
Value:
(void)(x)
MOSAPI void(1, 2) fatal_abort(const char *fmt

Definition at line 143 of file pb.h.

◆ PB_PROGMEM

#define PB_PROGMEM

Definition at line 154 of file pb.h.

◆ PB_PROGMEM_READU32

#define PB_PROGMEM_READU32 ( x)
Value:
(x)

Definition at line 155 of file pb.h.

◆ PB_STATIC_ASSERT

#define PB_STATIC_ASSERT ( COND,
MSG )
Value:
_Static_assert(COND,#MSG);

Definition at line 186 of file pb.h.

◆ PB_MAX_REQUIRED_FIELDS

#define PB_MAX_REQUIRED_FIELDS   64

Definition at line 204 of file pb.h.

◆ PB_LTYPE_BOOL

#define PB_LTYPE_BOOL   0x00U /* bool */

Definition at line 239 of file pb.h.

◆ PB_LTYPE_VARINT

#define PB_LTYPE_VARINT   0x01U /* int32, int64, enum, bool */

Definition at line 240 of file pb.h.

◆ PB_LTYPE_UVARINT

#define PB_LTYPE_UVARINT   0x02U /* uint32, uint64 */

Definition at line 241 of file pb.h.

◆ PB_LTYPE_SVARINT

#define PB_LTYPE_SVARINT   0x03U /* sint32, sint64 */

Definition at line 242 of file pb.h.

◆ PB_LTYPE_FIXED32

#define PB_LTYPE_FIXED32   0x04U /* fixed32, sfixed32, float */

Definition at line 243 of file pb.h.

◆ PB_LTYPE_FIXED64

#define PB_LTYPE_FIXED64   0x05U /* fixed64, sfixed64, double */

Definition at line 244 of file pb.h.

◆ PB_LTYPE_LAST_PACKABLE

#define PB_LTYPE_LAST_PACKABLE   0x05U

Definition at line 247 of file pb.h.

◆ PB_LTYPE_BYTES

#define PB_LTYPE_BYTES   0x06U

Definition at line 251 of file pb.h.

◆ PB_LTYPE_STRING

#define PB_LTYPE_STRING   0x07U

Definition at line 255 of file pb.h.

◆ PB_LTYPE_SUBMESSAGE

#define PB_LTYPE_SUBMESSAGE   0x08U

Definition at line 259 of file pb.h.

◆ PB_LTYPE_SUBMSG_W_CB

#define PB_LTYPE_SUBMSG_W_CB   0x09U

Definition at line 264 of file pb.h.

◆ PB_LTYPE_EXTENSION

#define PB_LTYPE_EXTENSION   0x0AU

Definition at line 268 of file pb.h.

◆ PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_LTYPE_FIXED_LENGTH_BYTES   0x0BU

Definition at line 274 of file pb.h.

◆ PB_LTYPES_COUNT

#define PB_LTYPES_COUNT   0x0CU

Definition at line 277 of file pb.h.

◆ PB_LTYPE_MASK

#define PB_LTYPE_MASK   0x0FU

Definition at line 278 of file pb.h.

◆ PB_HTYPE_REQUIRED

#define PB_HTYPE_REQUIRED   0x00U

Definition at line 282 of file pb.h.

◆ PB_HTYPE_OPTIONAL

#define PB_HTYPE_OPTIONAL   0x10U

Definition at line 283 of file pb.h.

◆ PB_HTYPE_SINGULAR

#define PB_HTYPE_SINGULAR   0x10U

Definition at line 284 of file pb.h.

◆ PB_HTYPE_REPEATED

#define PB_HTYPE_REPEATED   0x20U

Definition at line 285 of file pb.h.

◆ PB_HTYPE_FIXARRAY

#define PB_HTYPE_FIXARRAY   0x20U

Definition at line 286 of file pb.h.

◆ PB_HTYPE_ONEOF

#define PB_HTYPE_ONEOF   0x30U

Definition at line 287 of file pb.h.

◆ PB_HTYPE_MASK

#define PB_HTYPE_MASK   0x30U

Definition at line 288 of file pb.h.

◆ PB_ATYPE_STATIC

#define PB_ATYPE_STATIC   0x00U

Definition at line 292 of file pb.h.

◆ PB_ATYPE_POINTER

#define PB_ATYPE_POINTER   0x80U

Definition at line 293 of file pb.h.

◆ PB_ATYPE_CALLBACK

#define PB_ATYPE_CALLBACK   0x40U

Definition at line 294 of file pb.h.

◆ PB_ATYPE_MASK

#define PB_ATYPE_MASK   0xC0U

Definition at line 295 of file pb.h.

◆ PB_ATYPE

#define PB_ATYPE ( x)
Value:
#define PB_ATYPE_MASK
Definition pb.h:295

Definition at line 297 of file pb.h.

◆ PB_HTYPE

#define PB_HTYPE ( x)
Value:
#define PB_HTYPE_MASK
Definition pb.h:288

Definition at line 298 of file pb.h.

◆ PB_LTYPE

#define PB_LTYPE ( x)
Value:
#define PB_LTYPE_MASK
Definition pb.h:278

Definition at line 299 of file pb.h.

◆ PB_LTYPE_IS_SUBMSG

#define PB_LTYPE_IS_SUBMSG ( x)
Value:
PB_LTYPE(x) == PB_LTYPE_SUBMSG_W_CB)
#define PB_LTYPE_SUBMSG_W_CB
Definition pb.h:264
#define PB_LTYPE(x)
Definition pb.h:299
#define PB_LTYPE_SUBMESSAGE
Definition pb.h:259

Definition at line 300 of file pb.h.

◆ PB_SIZE_MAX

#define PB_SIZE_MAX   ((pb_size_t)-1)

Definition at line 313 of file pb.h.

◆ PB_BYTES_ARRAY_T

#define PB_BYTES_ARRAY_T ( n)
Value:
struct { pb_size_t size; pb_byte_t bytes[n]; }
uint_least8_t pb_byte_t
Definition pb.h:227
uint_least16_t pb_size_t
Definition pb.h:310
size_t size
Definition slab.c:30

Definition at line 376 of file pb.h.

◆ PB_BYTES_ARRAY_T_ALLOCSIZE

#define PB_BYTES_ARRAY_T_ALLOCSIZE ( n)
Value:
((size_t)n + offsetof(pb_bytes_array_t, bytes))
#define offsetof(st, m)
Definition pb_syshdr.h:43
uint32_t size_t
Definition pb_syshdr.h:42

Definition at line 377 of file pb.h.

◆ pb_extension_init_zero

#define pb_extension_init_zero   {NULL,NULL,NULL,false}

Definition at line 477 of file pb.h.

◆ PB_PROTO_HEADER_VERSION

#define PB_PROTO_HEADER_VERSION   40

Definition at line 491 of file pb.h.

◆ pb_membersize

#define pb_membersize ( st,
m )
Value:
(sizeof ((st*)0)->m)

Definition at line 495 of file pb.h.

◆ pb_arraysize

#define pb_arraysize ( st,
m )
Value:
(pb_membersize(st, m) / pb_membersize(st, m[0]))
#define pb_membersize(st, m)
Definition pb.h:495

Definition at line 497 of file pb.h.

◆ pb_delta

#define pb_delta ( st,
m1,
m2 )
Value:
((int)offsetof(st, m1) - (int)offsetof(st, m2))
MOSAPI int(2, 3) sprintf(char *__restrict str

Definition at line 499 of file pb.h.

◆ PB_EXPAND

#define PB_EXPAND ( x)
Value:
x

Definition at line 502 of file pb.h.

◆ PB_BIND

#define PB_BIND ( msgname,
structname,
width )
Value:
const uint32_t structname ## _field_info[] PB_PROGMEM = \
{ \
msgname ## _FIELDLIST(PB_GEN_FIELD_INFO_ ## width, structname) \
0 \
}; \
const pb_msgdesc_t* const structname ## _submsg_info[] = \
{ \
msgname ## _FIELDLIST(PB_GEN_SUBMSG_INFO, structname) \
NULL \
}; \
const pb_msgdesc_t structname ## _msg = \
{ \
structname ## _field_info, \
structname ## _submsg_info, \
msgname ## _DEFAULT, \
msgname ## _CALLBACK, \
0 msgname ## _FIELDLIST(PB_GEN_FIELD_COUNT, structname), \
0 msgname ## _FIELDLIST(PB_GEN_REQ_FIELD_COUNT, structname), \
0 msgname ## _FIELDLIST(PB_GEN_LARGEST_TAG, structname), \
}; \
msgname ## _FIELDLIST(PB_GEN_FIELD_INFO_ASSERT_ ## width, structname)
#define PB_PROGMEM
Definition pb.h:154
#define PB_GEN_REQ_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:529
#define PB_GEN_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:528
#define PB_GEN_SUBMSG_INFO(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:699
#define PB_GEN_LARGEST_TAG(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:531
#define NULL
Definition pb_syshdr.h:46
unsigned int uint32_t
Definition pb_syshdr.h:24

Definition at line 505 of file pb.h.

◆ PB_GEN_FIELD_COUNT

#define PB_GEN_FIELD_COUNT ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
+1

Definition at line 528 of file pb.h.

◆ PB_GEN_REQ_FIELD_COUNT

#define PB_GEN_REQ_FIELD_COUNT ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
+ (PB_HTYPE_ ## htype == PB_HTYPE_REQUIRED)
#define PB_HTYPE_REQUIRED
Definition pb.h:282

Definition at line 529 of file pb.h.

◆ PB_GEN_LARGEST_TAG

#define PB_GEN_LARGEST_TAG ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
* 0 + tag

Definition at line 531 of file pb.h.

◆ PB_GEN_FIELD_INFO_1

#define PB_GEN_FIELD_INFO_1 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_1(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_1(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:761

Definition at line 535 of file pb.h.

◆ PB_GEN_FIELD_INFO_2

#define PB_GEN_FIELD_INFO_2 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_2(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_2(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:765

Definition at line 542 of file pb.h.

◆ PB_GEN_FIELD_INFO_4

#define PB_GEN_FIELD_INFO_4 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_4(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_4(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:769

Definition at line 549 of file pb.h.

◆ PB_GEN_FIELD_INFO_8

#define PB_GEN_FIELD_INFO_8 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_8(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_8(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:774

Definition at line 556 of file pb.h.

◆ PB_GEN_FIELD_INFO_AUTO

#define PB_GEN_FIELD_INFO_AUTO ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_AUTO2(PB_FIELDINFO_WIDTH_AUTO(_PB_ATYPE_ ## atype, _PB_HTYPE_ ## htype, _PB_LTYPE_ ## ltype), \
tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:571
#define PB_FIELDINFO_WIDTH_AUTO(atype, htype, ltype)
Definition pb.h:819

Definition at line 563 of file pb.h.

◆ PB_FIELDINFO_AUTO2

#define PB_FIELDINFO_AUTO2 ( width,
tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
#define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:574

Definition at line 571 of file pb.h.

◆ PB_FIELDINFO_AUTO3

#define PB_FIELDINFO_AUTO3 ( width,
tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_FIELDINFO_ ## width(tag, type, data_offset, data_size, size_offset, array_size)

Definition at line 574 of file pb.h.

◆ PB_GEN_FIELD_INFO_ASSERT_1

#define PB_GEN_FIELD_INFO_ASSERT_1 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_ASSERT_1(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_ASSERT_1(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:787

Definition at line 580 of file pb.h.

◆ PB_GEN_FIELD_INFO_ASSERT_2

#define PB_GEN_FIELD_INFO_ASSERT_2 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_ASSERT_2(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_ASSERT_2(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:790

Definition at line 587 of file pb.h.

◆ PB_GEN_FIELD_INFO_ASSERT_4

#define PB_GEN_FIELD_INFO_ASSERT_4 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_ASSERT_4(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_ASSERT_4(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:795

Definition at line 594 of file pb.h.

◆ PB_GEN_FIELD_INFO_ASSERT_8

#define PB_GEN_FIELD_INFO_ASSERT_8 ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_ASSERT_8(tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_ASSERT_8(tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:798

Definition at line 601 of file pb.h.

◆ PB_GEN_FIELD_INFO_ASSERT_AUTO

#define PB_GEN_FIELD_INFO_ASSERT_AUTO ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_FIELDINFO_ASSERT_AUTO2(PB_FIELDINFO_WIDTH_AUTO(_PB_ATYPE_ ## atype, _PB_HTYPE_ ## htype, _PB_LTYPE_ ## ltype), \
tag, PB_ATYPE_ ## atype | PB_HTYPE_ ## htype | PB_LTYPE_MAP_ ## ltype, \
PB_DATA_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_DATA_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_SIZE_OFFSET_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname), \
PB_ARRAY_SIZE_ ## atype(_PB_HTYPE_ ## htype, structname, fieldname))
#define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:616

Definition at line 608 of file pb.h.

◆ PB_FIELDINFO_ASSERT_AUTO2

#define PB_FIELDINFO_ASSERT_AUTO2 ( width,
tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
#define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:619

Definition at line 616 of file pb.h.

◆ PB_FIELDINFO_ASSERT_AUTO3

#define PB_FIELDINFO_ASSERT_AUTO3 ( width,
tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_FIELDINFO_ASSERT_ ## width(tag, type, data_offset, data_size, size_offset, array_size)

Definition at line 619 of file pb.h.

◆ PB_DATA_OFFSET_STATIC

#define PB_DATA_OFFSET_STATIC ( htype,
structname,
fieldname )
Value:
PB_DO ## htype(structname, fieldname)

Definition at line 622 of file pb.h.

◆ PB_DATA_OFFSET_POINTER

#define PB_DATA_OFFSET_POINTER ( htype,
structname,
fieldname )
Value:
PB_DO ## htype(structname, fieldname)

Definition at line 623 of file pb.h.

◆ PB_DATA_OFFSET_CALLBACK

#define PB_DATA_OFFSET_CALLBACK ( htype,
structname,
fieldname )
Value:
PB_DO ## htype(structname, fieldname)

Definition at line 624 of file pb.h.

◆ PB_DO_PB_HTYPE_REQUIRED

#define PB_DO_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
offsetof(structname, fieldname)

Definition at line 625 of file pb.h.

◆ PB_DO_PB_HTYPE_SINGULAR

#define PB_DO_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
offsetof(structname, fieldname)

Definition at line 626 of file pb.h.

◆ PB_DO_PB_HTYPE_ONEOF

#define PB_DO_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
offsetof(structname, PB_ONEOF_NAME(FULL, fieldname))
#define PB_ONEOF_NAME(type, tuple)
Definition pb.h:694

Definition at line 627 of file pb.h.

◆ PB_DO_PB_HTYPE_OPTIONAL

#define PB_DO_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
offsetof(structname, fieldname)

Definition at line 628 of file pb.h.

◆ PB_DO_PB_HTYPE_REPEATED

#define PB_DO_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
offsetof(structname, fieldname)

Definition at line 629 of file pb.h.

◆ PB_DO_PB_HTYPE_FIXARRAY

#define PB_DO_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
offsetof(structname, fieldname)

Definition at line 630 of file pb.h.

◆ PB_SIZE_OFFSET_STATIC

#define PB_SIZE_OFFSET_STATIC ( htype,
structname,
fieldname )
Value:
PB_SO ## htype(structname, fieldname)

Definition at line 632 of file pb.h.

◆ PB_SIZE_OFFSET_POINTER

#define PB_SIZE_OFFSET_POINTER ( htype,
structname,
fieldname )
Value:
PB_SO_PTR ## htype(structname, fieldname)

Definition at line 633 of file pb.h.

◆ PB_SIZE_OFFSET_CALLBACK

#define PB_SIZE_OFFSET_CALLBACK ( htype,
structname,
fieldname )
Value:
PB_SO_CB ## htype(structname, fieldname)

Definition at line 634 of file pb.h.

◆ PB_SO_PB_HTYPE_REQUIRED

#define PB_SO_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

Definition at line 635 of file pb.h.

◆ PB_SO_PB_HTYPE_SINGULAR

#define PB_SO_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

Definition at line 636 of file pb.h.

◆ PB_SO_PB_HTYPE_ONEOF

#define PB_SO_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
PB_SO_PB_HTYPE_ONEOF2(structname, PB_ONEOF_NAME(FULL, fieldname), PB_ONEOF_NAME(UNION, fieldname))
#define PB_SO_PB_HTYPE_ONEOF2(structname, fullname, unionname)
Definition pb.h:638

Definition at line 637 of file pb.h.

◆ PB_SO_PB_HTYPE_ONEOF2

#define PB_SO_PB_HTYPE_ONEOF2 ( structname,
fullname,
unionname )
Value:
PB_SO_PB_HTYPE_ONEOF3(structname, fullname, unionname)
#define PB_SO_PB_HTYPE_ONEOF3(structname, fullname, unionname)
Definition pb.h:639

Definition at line 638 of file pb.h.

◆ PB_SO_PB_HTYPE_ONEOF3

#define PB_SO_PB_HTYPE_ONEOF3 ( structname,
fullname,
unionname )
Value:
pb_delta(structname, fullname, which_ ## unionname)
#define pb_delta(st, m1, m2)
Definition pb.h:499

Definition at line 639 of file pb.h.

◆ PB_SO_PB_HTYPE_OPTIONAL

#define PB_SO_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
pb_delta(structname, fieldname, has_ ## fieldname)

Definition at line 640 of file pb.h.

◆ PB_SO_PB_HTYPE_REPEATED

#define PB_SO_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
pb_delta(structname, fieldname, fieldname ## _count)

Definition at line 641 of file pb.h.

◆ PB_SO_PB_HTYPE_FIXARRAY

#define PB_SO_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

Definition at line 642 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_REQUIRED

#define PB_SO_PTR_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

Definition at line 643 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_SINGULAR

#define PB_SO_PTR_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

Definition at line 644 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_ONEOF

#define PB_SO_PTR_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
PB_SO_PB_HTYPE_ONEOF(structname, fieldname)
#define PB_SO_PB_HTYPE_ONEOF(structname, fieldname)
Definition pb.h:637

Definition at line 645 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_OPTIONAL

#define PB_SO_PTR_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
0

Definition at line 646 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_REPEATED

#define PB_SO_PTR_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
PB_SO_PB_HTYPE_REPEATED(structname, fieldname)
#define PB_SO_PB_HTYPE_REPEATED(structname, fieldname)
Definition pb.h:641

Definition at line 647 of file pb.h.

◆ PB_SO_PTR_PB_HTYPE_FIXARRAY

#define PB_SO_PTR_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

Definition at line 648 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_REQUIRED

#define PB_SO_CB_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

Definition at line 649 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_SINGULAR

#define PB_SO_CB_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

Definition at line 650 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_ONEOF

#define PB_SO_CB_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
PB_SO_PB_HTYPE_ONEOF(structname, fieldname)

Definition at line 651 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_OPTIONAL

#define PB_SO_CB_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
0

Definition at line 652 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_REPEATED

#define PB_SO_CB_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
0

Definition at line 653 of file pb.h.

◆ PB_SO_CB_PB_HTYPE_FIXARRAY

#define PB_SO_CB_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

Definition at line 654 of file pb.h.

◆ PB_ARRAY_SIZE_STATIC

#define PB_ARRAY_SIZE_STATIC ( htype,
structname,
fieldname )
Value:
PB_AS ## htype(structname, fieldname)

Definition at line 656 of file pb.h.

◆ PB_ARRAY_SIZE_POINTER

#define PB_ARRAY_SIZE_POINTER ( htype,
structname,
fieldname )
Value:
PB_AS_PTR ## htype(structname, fieldname)

Definition at line 657 of file pb.h.

◆ PB_ARRAY_SIZE_CALLBACK

#define PB_ARRAY_SIZE_CALLBACK ( htype,
structname,
fieldname )
Value:
1

Definition at line 658 of file pb.h.

◆ PB_AS_PB_HTYPE_REQUIRED

#define PB_AS_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
1

Definition at line 659 of file pb.h.

◆ PB_AS_PB_HTYPE_SINGULAR

#define PB_AS_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
1

Definition at line 660 of file pb.h.

◆ PB_AS_PB_HTYPE_OPTIONAL

#define PB_AS_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
1

Definition at line 661 of file pb.h.

◆ PB_AS_PB_HTYPE_ONEOF

#define PB_AS_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
1

Definition at line 662 of file pb.h.

◆ PB_AS_PB_HTYPE_REPEATED

#define PB_AS_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
pb_arraysize(structname, fieldname)
#define pb_arraysize(st, m)
Definition pb.h:497

Definition at line 663 of file pb.h.

◆ PB_AS_PB_HTYPE_FIXARRAY

#define PB_AS_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
pb_arraysize(structname, fieldname)

Definition at line 664 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_REQUIRED

#define PB_AS_PTR_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
1

Definition at line 665 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_SINGULAR

#define PB_AS_PTR_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
1

Definition at line 666 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_OPTIONAL

#define PB_AS_PTR_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
1

Definition at line 667 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_ONEOF

#define PB_AS_PTR_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
1

Definition at line 668 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_REPEATED

#define PB_AS_PTR_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
1

Definition at line 669 of file pb.h.

◆ PB_AS_PTR_PB_HTYPE_FIXARRAY

#define PB_AS_PTR_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
pb_arraysize(structname, fieldname[0])

Definition at line 670 of file pb.h.

◆ PB_DATA_SIZE_STATIC

#define PB_DATA_SIZE_STATIC ( htype,
structname,
fieldname )
Value:
PB_DS ## htype(structname, fieldname)

Definition at line 672 of file pb.h.

◆ PB_DATA_SIZE_POINTER

#define PB_DATA_SIZE_POINTER ( htype,
structname,
fieldname )
Value:
PB_DS_PTR ## htype(structname, fieldname)

Definition at line 673 of file pb.h.

◆ PB_DATA_SIZE_CALLBACK

#define PB_DATA_SIZE_CALLBACK ( htype,
structname,
fieldname )
Value:
PB_DS_CB ## htype(structname, fieldname)

Definition at line 674 of file pb.h.

◆ PB_DS_PB_HTYPE_REQUIRED

#define PB_DS_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 675 of file pb.h.

◆ PB_DS_PB_HTYPE_SINGULAR

#define PB_DS_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 676 of file pb.h.

◆ PB_DS_PB_HTYPE_OPTIONAL

#define PB_DS_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 677 of file pb.h.

◆ PB_DS_PB_HTYPE_ONEOF

#define PB_DS_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
pb_membersize(structname, PB_ONEOF_NAME(FULL, fieldname))

Definition at line 678 of file pb.h.

◆ PB_DS_PB_HTYPE_REPEATED

#define PB_DS_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 679 of file pb.h.

◆ PB_DS_PB_HTYPE_FIXARRAY

#define PB_DS_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 680 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_REQUIRED

#define PB_DS_PTR_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 681 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_SINGULAR

#define PB_DS_PTR_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 682 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_OPTIONAL

#define PB_DS_PTR_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 683 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_ONEOF

#define PB_DS_PTR_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
pb_membersize(structname, PB_ONEOF_NAME(FULL, fieldname)[0])

Definition at line 684 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_REPEATED

#define PB_DS_PTR_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0])

Definition at line 685 of file pb.h.

◆ PB_DS_PTR_PB_HTYPE_FIXARRAY

#define PB_DS_PTR_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname[0][0])

Definition at line 686 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_REQUIRED

#define PB_DS_CB_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 687 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_SINGULAR

#define PB_DS_CB_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 688 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_OPTIONAL

#define PB_DS_CB_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 689 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_ONEOF

#define PB_DS_CB_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
pb_membersize(structname, PB_ONEOF_NAME(FULL, fieldname))

Definition at line 690 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_REPEATED

#define PB_DS_CB_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 691 of file pb.h.

◆ PB_DS_CB_PB_HTYPE_FIXARRAY

#define PB_DS_CB_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
pb_membersize(structname, fieldname)

Definition at line 692 of file pb.h.

◆ PB_ONEOF_NAME

#define PB_ONEOF_NAME ( type,
tuple )
Value:
PB_EXPAND(PB_ONEOF_NAME_ ## type tuple)
#define PB_EXPAND(x)
Definition pb.h:502

Definition at line 694 of file pb.h.

◆ PB_ONEOF_NAME_UNION

#define PB_ONEOF_NAME_UNION ( unionname,
membername,
fullname )
Value:
unionname

Definition at line 695 of file pb.h.

◆ PB_ONEOF_NAME_MEMBER

#define PB_ONEOF_NAME_MEMBER ( unionname,
membername,
fullname )
Value:
membername

Definition at line 696 of file pb.h.

◆ PB_ONEOF_NAME_FULL

#define PB_ONEOF_NAME_FULL ( unionname,
membername,
fullname )
Value:
fullname

Definition at line 697 of file pb.h.

◆ PB_GEN_SUBMSG_INFO

#define PB_GEN_SUBMSG_INFO ( structname,
atype,
htype,
ltype,
fieldname,
tag )
Value:
PB_SUBMSG_INFO_ ## htype(_PB_LTYPE_ ## ltype, structname, fieldname)

Definition at line 699 of file pb.h.

◆ PB_SUBMSG_INFO_REQUIRED

#define PB_SUBMSG_INFO_REQUIRED ( ltype,
structname,
fieldname )
Value:
PB_SI ## ltype(structname ## _ ## fieldname ## _MSGTYPE)

Definition at line 702 of file pb.h.

◆ PB_SUBMSG_INFO_SINGULAR

#define PB_SUBMSG_INFO_SINGULAR ( ltype,
structname,
fieldname )
Value:
PB_SI ## ltype(structname ## _ ## fieldname ## _MSGTYPE)

Definition at line 703 of file pb.h.

◆ PB_SUBMSG_INFO_OPTIONAL

#define PB_SUBMSG_INFO_OPTIONAL ( ltype,
structname,
fieldname )
Value:
PB_SI ## ltype(structname ## _ ## fieldname ## _MSGTYPE)

Definition at line 704 of file pb.h.

◆ PB_SUBMSG_INFO_ONEOF

#define PB_SUBMSG_INFO_ONEOF ( ltype,
structname,
fieldname )
Value:
PB_SUBMSG_INFO_ONEOF2(ltype, structname, PB_ONEOF_NAME(UNION, fieldname), PB_ONEOF_NAME(MEMBER, fieldname))
#define PB_SUBMSG_INFO_ONEOF2(ltype, structname, unionname, membername)
Definition pb.h:706

Definition at line 705 of file pb.h.

◆ PB_SUBMSG_INFO_ONEOF2

#define PB_SUBMSG_INFO_ONEOF2 ( ltype,
structname,
unionname,
membername )
Value:
PB_SUBMSG_INFO_ONEOF3(ltype, structname, unionname, membername)
#define PB_SUBMSG_INFO_ONEOF3(ltype, structname, unionname, membername)
Definition pb.h:707

Definition at line 706 of file pb.h.

◆ PB_SUBMSG_INFO_ONEOF3

#define PB_SUBMSG_INFO_ONEOF3 ( ltype,
structname,
unionname,
membername )
Value:
PB_SI ## ltype(structname ## _ ## unionname ## _ ## membername ## _MSGTYPE)

Definition at line 707 of file pb.h.

◆ PB_SUBMSG_INFO_REPEATED

#define PB_SUBMSG_INFO_REPEATED ( ltype,
structname,
fieldname )
Value:
PB_SI ## ltype(structname ## _ ## fieldname ## _MSGTYPE)

Definition at line 708 of file pb.h.

◆ PB_SUBMSG_INFO_FIXARRAY

#define PB_SUBMSG_INFO_FIXARRAY ( ltype,
structname,
fieldname )
Value:
PB_SI ## ltype(structname ## _ ## fieldname ## _MSGTYPE)

Definition at line 709 of file pb.h.

◆ PB_SI_PB_LTYPE_BOOL

#define PB_SI_PB_LTYPE_BOOL ( t)

Definition at line 710 of file pb.h.

◆ PB_SI_PB_LTYPE_BYTES

#define PB_SI_PB_LTYPE_BYTES ( t)

Definition at line 711 of file pb.h.

◆ PB_SI_PB_LTYPE_DOUBLE

#define PB_SI_PB_LTYPE_DOUBLE ( t)

Definition at line 712 of file pb.h.

◆ PB_SI_PB_LTYPE_ENUM

#define PB_SI_PB_LTYPE_ENUM ( t)

Definition at line 713 of file pb.h.

◆ PB_SI_PB_LTYPE_UENUM

#define PB_SI_PB_LTYPE_UENUM ( t)

Definition at line 714 of file pb.h.

◆ PB_SI_PB_LTYPE_FIXED32

#define PB_SI_PB_LTYPE_FIXED32 ( t)

Definition at line 715 of file pb.h.

◆ PB_SI_PB_LTYPE_FIXED64

#define PB_SI_PB_LTYPE_FIXED64 ( t)

Definition at line 716 of file pb.h.

◆ PB_SI_PB_LTYPE_FLOAT

#define PB_SI_PB_LTYPE_FLOAT ( t)

Definition at line 717 of file pb.h.

◆ PB_SI_PB_LTYPE_INT32

#define PB_SI_PB_LTYPE_INT32 ( t)

Definition at line 718 of file pb.h.

◆ PB_SI_PB_LTYPE_INT64

#define PB_SI_PB_LTYPE_INT64 ( t)

Definition at line 719 of file pb.h.

◆ PB_SI_PB_LTYPE_MESSAGE

#define PB_SI_PB_LTYPE_MESSAGE ( t)
Value:
#define PB_SUBMSG_DESCRIPTOR(t)
Definition pb.h:731

Definition at line 720 of file pb.h.

◆ PB_SI_PB_LTYPE_MSG_W_CB

#define PB_SI_PB_LTYPE_MSG_W_CB ( t)
Value:

Definition at line 721 of file pb.h.

◆ PB_SI_PB_LTYPE_SFIXED32

#define PB_SI_PB_LTYPE_SFIXED32 ( t)

Definition at line 722 of file pb.h.

◆ PB_SI_PB_LTYPE_SFIXED64

#define PB_SI_PB_LTYPE_SFIXED64 ( t)

Definition at line 723 of file pb.h.

◆ PB_SI_PB_LTYPE_SINT32

#define PB_SI_PB_LTYPE_SINT32 ( t)

Definition at line 724 of file pb.h.

◆ PB_SI_PB_LTYPE_SINT64

#define PB_SI_PB_LTYPE_SINT64 ( t)

Definition at line 725 of file pb.h.

◆ PB_SI_PB_LTYPE_STRING

#define PB_SI_PB_LTYPE_STRING ( t)

Definition at line 726 of file pb.h.

◆ PB_SI_PB_LTYPE_UINT32

#define PB_SI_PB_LTYPE_UINT32 ( t)

Definition at line 727 of file pb.h.

◆ PB_SI_PB_LTYPE_UINT64

#define PB_SI_PB_LTYPE_UINT64 ( t)

Definition at line 728 of file pb.h.

◆ PB_SI_PB_LTYPE_EXTENSION

#define PB_SI_PB_LTYPE_EXTENSION ( t)

Definition at line 729 of file pb.h.

◆ PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES ( t)

Definition at line 730 of file pb.h.

◆ PB_SUBMSG_DESCRIPTOR

#define PB_SUBMSG_DESCRIPTOR ( t)
Value:
&(t ## _msg),

Definition at line 731 of file pb.h.

◆ PB_FIELDINFO_1

#define PB_FIELDINFO_1 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
(0 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(data_offset) & 0xFF) << 16) | \
(((uint32_t)(size_offset) & 0x0F) << 24) | (((uint32_t)(data_size) & 0x0F) << 28)),

Definition at line 761 of file pb.h.

◆ PB_FIELDINFO_2

#define PB_FIELDINFO_2 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
(1 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFF) << 16) | (((uint32_t)(size_offset) & 0x0F) << 28)), \
(((uint32_t)(data_offset) & 0xFFFF) | (((uint32_t)(data_size) & 0xFFF) << 16) | (((uint32_t)(tag) & 0x3c0) << 22)),

Definition at line 765 of file pb.h.

◆ PB_FIELDINFO_4

#define PB_FIELDINFO_4 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
(2 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFFF) << 16)), \
((uint32_t)(int_least8_t)(size_offset) | (((uint32_t)(tag) << 2) & 0xFFFFFF00)), \
(data_offset), (data_size),
int8_t int_least8_t
Definition pb_syshdr.h:30

Definition at line 769 of file pb.h.

◆ PB_FIELDINFO_8

#define PB_FIELDINFO_8 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
(3 | (((tag) << 2) & 0xFF) | ((type) << 8)), \
((uint32_t)(int_least8_t)(size_offset) | (((uint32_t)(tag) << 2) & 0xFFFFFF00)), \
(data_offset), (data_size), (array_size), 0, 0, 0,

Definition at line 774 of file pb.h.

◆ PB_FITS

#define PB_FITS ( value,
bits )
Value:
((uint32_t)(value) < ((uint32_t)1<<bits))

Definition at line 786 of file pb.h.

◆ PB_FIELDINFO_ASSERT_1

#define PB_FIELDINFO_ASSERT_1 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_STATIC_ASSERT(PB_FITS(tag,6) && PB_FITS(data_offset,8) && PB_FITS(size_offset,4) && PB_FITS(data_size,4) && PB_FITS(array_size,1), FIELDINFO_DOES_NOT_FIT_width1_field ## tag)
#define PB_STATIC_ASSERT(COND, MSG)
Definition pb.h:186
#define PB_FITS(value, bits)
Definition pb.h:786

Definition at line 787 of file pb.h.

◆ PB_FIELDINFO_ASSERT_2

#define PB_FIELDINFO_ASSERT_2 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_STATIC_ASSERT(PB_FITS(tag,10) && PB_FITS(data_offset,16) && PB_FITS(size_offset,4) && PB_FITS(data_size,12) && PB_FITS(array_size,12), FIELDINFO_DOES_NOT_FIT_width2_field ## tag)

Definition at line 790 of file pb.h.

◆ PB_FIELDINFO_ASSERT_4

#define PB_FIELDINFO_ASSERT_4 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_STATIC_ASSERT(PB_FITS(tag,16) && PB_FITS(data_offset,16) && PB_FITS((int_least8_t)size_offset,8) && PB_FITS(data_size,16) && PB_FITS(array_size,16), FIELDINFO_DOES_NOT_FIT_width4_field ## tag)

Definition at line 795 of file pb.h.

◆ PB_FIELDINFO_ASSERT_8

#define PB_FIELDINFO_ASSERT_8 ( tag,
type,
data_offset,
data_size,
size_offset,
array_size )
Value:
PB_STATIC_ASSERT(PB_FITS(tag,16) && PB_FITS(data_offset,16) && PB_FITS((int_least8_t)size_offset,8) && PB_FITS(data_size,16) && PB_FITS(array_size,16), FIELDINFO_DOES_NOT_FIT_width8_field ## tag)

Definition at line 798 of file pb.h.

◆ PB_FIELDINFO_WIDTH_AUTO

#define PB_FIELDINFO_WIDTH_AUTO ( atype,
htype,
ltype )
Value:
PB_FI_WIDTH ## atype(htype, ltype)

Definition at line 819 of file pb.h.

◆ PB_FI_WIDTH_PB_ATYPE_STATIC

#define PB_FI_WIDTH_PB_ATYPE_STATIC ( htype,
ltype )
Value:
PB_FI_WIDTH ## htype(ltype)

Definition at line 820 of file pb.h.

◆ PB_FI_WIDTH_PB_ATYPE_POINTER

#define PB_FI_WIDTH_PB_ATYPE_POINTER ( htype,
ltype )
Value:
PB_FI_WIDTH ## htype(ltype)

Definition at line 821 of file pb.h.

◆ PB_FI_WIDTH_PB_ATYPE_CALLBACK

#define PB_FI_WIDTH_PB_ATYPE_CALLBACK ( htype,
ltype )
Value:
2

Definition at line 822 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_REQUIRED

#define PB_FI_WIDTH_PB_HTYPE_REQUIRED ( ltype)
Value:
PB_FI_WIDTH ## ltype

Definition at line 823 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_SINGULAR

#define PB_FI_WIDTH_PB_HTYPE_SINGULAR ( ltype)
Value:
PB_FI_WIDTH ## ltype

Definition at line 824 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_OPTIONAL

#define PB_FI_WIDTH_PB_HTYPE_OPTIONAL ( ltype)
Value:
PB_FI_WIDTH ## ltype

Definition at line 825 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_ONEOF

#define PB_FI_WIDTH_PB_HTYPE_ONEOF ( ltype)
Value:
PB_FI_WIDTH ## ltype

Definition at line 826 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_REPEATED

#define PB_FI_WIDTH_PB_HTYPE_REPEATED ( ltype)
Value:
2

Definition at line 827 of file pb.h.

◆ PB_FI_WIDTH_PB_HTYPE_FIXARRAY

#define PB_FI_WIDTH_PB_HTYPE_FIXARRAY ( ltype)
Value:
2

Definition at line 828 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_BOOL

#define PB_FI_WIDTH_PB_LTYPE_BOOL   1

Definition at line 829 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_BYTES

#define PB_FI_WIDTH_PB_LTYPE_BYTES   2

Definition at line 830 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_DOUBLE

#define PB_FI_WIDTH_PB_LTYPE_DOUBLE   1

Definition at line 831 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_ENUM

#define PB_FI_WIDTH_PB_LTYPE_ENUM   1

Definition at line 832 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_UENUM

#define PB_FI_WIDTH_PB_LTYPE_UENUM   1

Definition at line 833 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_FIXED32

#define PB_FI_WIDTH_PB_LTYPE_FIXED32   1

Definition at line 834 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_FIXED64

#define PB_FI_WIDTH_PB_LTYPE_FIXED64   1

Definition at line 835 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_FLOAT

#define PB_FI_WIDTH_PB_LTYPE_FLOAT   1

Definition at line 836 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_INT32

#define PB_FI_WIDTH_PB_LTYPE_INT32   1

Definition at line 837 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_INT64

#define PB_FI_WIDTH_PB_LTYPE_INT64   1

Definition at line 838 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_MESSAGE

#define PB_FI_WIDTH_PB_LTYPE_MESSAGE   2

Definition at line 839 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_MSG_W_CB

#define PB_FI_WIDTH_PB_LTYPE_MSG_W_CB   2

Definition at line 840 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_SFIXED32

#define PB_FI_WIDTH_PB_LTYPE_SFIXED32   1

Definition at line 841 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_SFIXED64

#define PB_FI_WIDTH_PB_LTYPE_SFIXED64   1

Definition at line 842 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_SINT32

#define PB_FI_WIDTH_PB_LTYPE_SINT32   1

Definition at line 843 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_SINT64

#define PB_FI_WIDTH_PB_LTYPE_SINT64   1

Definition at line 844 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_STRING

#define PB_FI_WIDTH_PB_LTYPE_STRING   2

Definition at line 845 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_UINT32

#define PB_FI_WIDTH_PB_LTYPE_UINT32   1

Definition at line 846 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_UINT64

#define PB_FI_WIDTH_PB_LTYPE_UINT64   1

Definition at line 847 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_EXTENSION

#define PB_FI_WIDTH_PB_LTYPE_EXTENSION   1

Definition at line 848 of file pb.h.

◆ PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES   2

Definition at line 849 of file pb.h.

◆ PB_LTYPE_MAP_BOOL

#define PB_LTYPE_MAP_BOOL   PB_LTYPE_BOOL

Definition at line 852 of file pb.h.

◆ PB_LTYPE_MAP_BYTES

#define PB_LTYPE_MAP_BYTES   PB_LTYPE_BYTES

Definition at line 853 of file pb.h.

◆ PB_LTYPE_MAP_DOUBLE

#define PB_LTYPE_MAP_DOUBLE   PB_LTYPE_FIXED64

Definition at line 854 of file pb.h.

◆ PB_LTYPE_MAP_ENUM

#define PB_LTYPE_MAP_ENUM   PB_LTYPE_VARINT

Definition at line 855 of file pb.h.

◆ PB_LTYPE_MAP_UENUM

#define PB_LTYPE_MAP_UENUM   PB_LTYPE_UVARINT

Definition at line 856 of file pb.h.

◆ PB_LTYPE_MAP_FIXED32

#define PB_LTYPE_MAP_FIXED32   PB_LTYPE_FIXED32

Definition at line 857 of file pb.h.

◆ PB_LTYPE_MAP_FIXED64

#define PB_LTYPE_MAP_FIXED64   PB_LTYPE_FIXED64

Definition at line 858 of file pb.h.

◆ PB_LTYPE_MAP_FLOAT

#define PB_LTYPE_MAP_FLOAT   PB_LTYPE_FIXED32

Definition at line 859 of file pb.h.

◆ PB_LTYPE_MAP_INT32

#define PB_LTYPE_MAP_INT32   PB_LTYPE_VARINT

Definition at line 860 of file pb.h.

◆ PB_LTYPE_MAP_INT64

#define PB_LTYPE_MAP_INT64   PB_LTYPE_VARINT

Definition at line 861 of file pb.h.

◆ PB_LTYPE_MAP_MESSAGE

#define PB_LTYPE_MAP_MESSAGE   PB_LTYPE_SUBMESSAGE

Definition at line 862 of file pb.h.

◆ PB_LTYPE_MAP_MSG_W_CB

#define PB_LTYPE_MAP_MSG_W_CB   PB_LTYPE_SUBMSG_W_CB

Definition at line 863 of file pb.h.

◆ PB_LTYPE_MAP_SFIXED32

#define PB_LTYPE_MAP_SFIXED32   PB_LTYPE_FIXED32

Definition at line 864 of file pb.h.

◆ PB_LTYPE_MAP_SFIXED64

#define PB_LTYPE_MAP_SFIXED64   PB_LTYPE_FIXED64

Definition at line 865 of file pb.h.

◆ PB_LTYPE_MAP_SINT32

#define PB_LTYPE_MAP_SINT32   PB_LTYPE_SVARINT

Definition at line 866 of file pb.h.

◆ PB_LTYPE_MAP_SINT64

#define PB_LTYPE_MAP_SINT64   PB_LTYPE_SVARINT

Definition at line 867 of file pb.h.

◆ PB_LTYPE_MAP_STRING

#define PB_LTYPE_MAP_STRING   PB_LTYPE_STRING

Definition at line 868 of file pb.h.

◆ PB_LTYPE_MAP_UINT32

#define PB_LTYPE_MAP_UINT32   PB_LTYPE_UVARINT

Definition at line 869 of file pb.h.

◆ PB_LTYPE_MAP_UINT64

#define PB_LTYPE_MAP_UINT64   PB_LTYPE_UVARINT

Definition at line 870 of file pb.h.

◆ PB_LTYPE_MAP_EXTENSION

#define PB_LTYPE_MAP_EXTENSION   PB_LTYPE_EXTENSION

Definition at line 871 of file pb.h.

◆ PB_LTYPE_MAP_FIXED_LENGTH_BYTES

#define PB_LTYPE_MAP_FIXED_LENGTH_BYTES   PB_LTYPE_FIXED_LENGTH_BYTES

Definition at line 872 of file pb.h.

◆ PB_SET_ERROR

#define PB_SET_ERROR ( stream,
msg )
Value:
(stream->errmsg = (stream)->errmsg ? (stream)->errmsg : (msg))

Definition at line 890 of file pb.h.

◆ PB_GET_ERROR

#define PB_GET_ERROR ( stream)
Value:
((stream)->errmsg ? (stream)->errmsg : "(none)")

Definition at line 891 of file pb.h.

◆ PB_RETURN_ERROR

#define PB_RETURN_ERROR ( stream,
msg )
Value:
return PB_SET_ERROR(stream, msg), false
#define PB_SET_ERROR(stream, msg)
Definition pb.h:890

Definition at line 894 of file pb.h.

Enumeration Type Documentation

◆ pb_wire_type_t

Enumerator
PB_WT_VARINT 
PB_WT_64BIT 
PB_WT_STRING 
PB_WT_32BIT 
PB_WT_PACKED 

Definition at line 420 of file pb.h.

Function Documentation

◆ pb_default_field_callback()

bool pb_default_field_callback ( pb_istream_t * istream,
pb_ostream_t * ostream,
const pb_field_t * field )
extern

Definition at line 300 of file pb_common.c.