WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
pb.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <limits.h>
#include <span>
#include <string_view>

Go to the source code of this file.

Classes

struct  pb_filedesc_s
 
struct  pb_msgdesc_s
 
struct  pb_field_iter_s
 
struct  pb_bytes_array_s
 
struct  pb_callback_s
 
struct  pb_extension_type_s
 
struct  pb_extension_s
 

Namespaces

namespace  nanopb
 

Macros

#define NANOPB_VERSION   "nanopb-0.4.9"
 
#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)
 
#define PB_CONSTEXPR
 
#define PB_INLINE_CONSTEXPR   PB_CONSTEXPR
 

Typedefs

typedef uint_least8_t pb_byte_t
 
typedef pb_byte_t pb_type_t
 
typedef uint_least16_t pb_size_t
 
typedef int_least16_t pb_ssize_t
 
typedef struct pb_istream_s pb_istream_t
 
typedef struct pb_ostream_s pb_ostream_t
 
typedef struct pb_field_iter_s pb_field_iter_t
 
typedef struct pb_filedesc_s pb_filedesc_t
 
typedef struct pb_msgdesc_s pb_msgdesc_t
 
typedef pb_field_iter_t pb_field_t
 
typedef struct pb_bytes_array_s pb_bytes_array_t
 
typedef struct pb_callback_s pb_callback_t
 
typedef struct pb_extension_type_s pb_extension_type_t
 
typedef struct pb_extension_s pb_extension_t
 

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

 PB_STATIC_ASSERT (sizeof(int64_t)==2 *sizeof(int32_t), INT64_T_WRONG_SIZE) PB_STATIC_ASSERT(sizeof(uint64_t)
 
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"

◆ PB_ARRAY_SIZE_CALLBACK

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

◆ PB_ARRAY_SIZE_POINTER

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

◆ PB_ARRAY_SIZE_STATIC

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

◆ 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:505

◆ PB_AS_PB_HTYPE_FIXARRAY

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

◆ PB_AS_PB_HTYPE_ONEOF

#define PB_AS_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
1

◆ PB_AS_PB_HTYPE_OPTIONAL

#define PB_AS_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
1

◆ PB_AS_PB_HTYPE_REPEATED

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

◆ PB_AS_PB_HTYPE_REQUIRED

#define PB_AS_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
1

◆ PB_AS_PB_HTYPE_SINGULAR

#define PB_AS_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
1

◆ PB_AS_PTR_PB_HTYPE_FIXARRAY

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

◆ PB_AS_PTR_PB_HTYPE_ONEOF

#define PB_AS_PTR_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
1

◆ PB_AS_PTR_PB_HTYPE_OPTIONAL

#define PB_AS_PTR_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
1

◆ PB_AS_PTR_PB_HTYPE_REPEATED

#define PB_AS_PTR_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
1

◆ PB_AS_PTR_PB_HTYPE_REQUIRED

#define PB_AS_PTR_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
1

◆ PB_AS_PTR_PB_HTYPE_SINGULAR

#define PB_AS_PTR_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
1

◆ PB_ATYPE

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

◆ PB_ATYPE_CALLBACK

#define PB_ATYPE_CALLBACK   0x40U

◆ PB_ATYPE_MASK

#define PB_ATYPE_MASK   0xC0U

◆ PB_ATYPE_POINTER

#define PB_ATYPE_POINTER   0x80U

◆ PB_ATYPE_STATIC

#define PB_ATYPE_STATIC   0x00U

◆ PB_BIND

#define PB_BIND ( msgname,
structname,
width )
Value:
static const uint32_t structname ## _field_info[] PB_PROGMEM = \
{ \
msgname ## _FIELDLIST(PB_GEN_FIELD_INFO_ ## width, structname) \
0 \
}; \
static const pb_msgdesc_t* const structname ## _submsg_info[] = \
{ \
msgname ## _FIELDLIST(PB_GEN_SUBMSG_INFO, structname) \
NULL \
}; \
static 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), \
structname::file_descriptor(), \
structname::msg_name(), \
}; \
const pb_msgdesc_t* structname::msg_descriptor(void) noexcept { return &(structname ## _msg); } \
msgname ## _FIELDLIST(PB_GEN_FIELD_INFO_ASSERT_ ## width, structname)
#define PB_PROGMEM
Definition pb.h:155
#define PB_GEN_REQ_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:542
#define PB_GEN_FIELD_COUNT(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:541
#define PB_GEN_SUBMSG_INFO(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:712
#define PB_GEN_LARGEST_TAG(structname, atype, htype, ltype, fieldname, tag)
Definition pb.h:544
Definition pb.h:331

◆ 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:228
uint_least16_t pb_size_t
Definition pb.h:311
Definition format.h:3858

◆ PB_BYTES_ARRAY_T_ALLOCSIZE

#define PB_BYTES_ARRAY_T_ALLOCSIZE ( n)
Value:
((size_t)n + offsetof(pb_bytes_array_t, bytes))
Definition pb.h:389

◆ PB_CONSTEXPR

#define PB_CONSTEXPR

◆ PB_DATA_OFFSET_CALLBACK

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

◆ PB_DATA_OFFSET_POINTER

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

◆ PB_DATA_OFFSET_STATIC

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

◆ PB_DATA_SIZE_CALLBACK

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

◆ PB_DATA_SIZE_POINTER

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

◆ PB_DATA_SIZE_STATIC

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

◆ pb_delta

#define pb_delta ( st,
m1,
m2 )
Value:
((int)offsetof(st, m1) - (int)offsetof(st, m2))

◆ PB_DO_PB_HTYPE_FIXARRAY

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

◆ 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:707

◆ PB_DO_PB_HTYPE_OPTIONAL

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

◆ PB_DO_PB_HTYPE_REPEATED

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

◆ PB_DO_PB_HTYPE_REQUIRED

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

◆ PB_DO_PB_HTYPE_SINGULAR

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

◆ PB_DS_CB_PB_HTYPE_FIXARRAY

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

◆ PB_DS_CB_PB_HTYPE_ONEOF

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

◆ PB_DS_CB_PB_HTYPE_OPTIONAL

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

◆ PB_DS_CB_PB_HTYPE_REPEATED

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

◆ PB_DS_CB_PB_HTYPE_REQUIRED

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

◆ PB_DS_CB_PB_HTYPE_SINGULAR

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

◆ PB_DS_PB_HTYPE_FIXARRAY

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

◆ PB_DS_PB_HTYPE_ONEOF

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

◆ PB_DS_PB_HTYPE_OPTIONAL

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

◆ PB_DS_PB_HTYPE_REPEATED

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

◆ PB_DS_PB_HTYPE_REQUIRED

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

◆ PB_DS_PB_HTYPE_SINGULAR

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

◆ PB_DS_PTR_PB_HTYPE_FIXARRAY

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

◆ 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])

◆ PB_DS_PTR_PB_HTYPE_OPTIONAL

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

◆ PB_DS_PTR_PB_HTYPE_REPEATED

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

◆ PB_DS_PTR_PB_HTYPE_REQUIRED

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

◆ PB_DS_PTR_PB_HTYPE_SINGULAR

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

◆ PB_EXPAND

#define PB_EXPAND ( x)
Value:
x

◆ pb_extension_init_zero

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

◆ PB_FI_WIDTH_PB_ATYPE_CALLBACK

#define PB_FI_WIDTH_PB_ATYPE_CALLBACK ( htype,
ltype )
Value:
2

◆ PB_FI_WIDTH_PB_ATYPE_POINTER

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

◆ PB_FI_WIDTH_PB_ATYPE_STATIC

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

◆ PB_FI_WIDTH_PB_HTYPE_FIXARRAY

#define PB_FI_WIDTH_PB_HTYPE_FIXARRAY ( ltype)
Value:
2

◆ PB_FI_WIDTH_PB_HTYPE_ONEOF

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

◆ PB_FI_WIDTH_PB_HTYPE_OPTIONAL

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

◆ PB_FI_WIDTH_PB_HTYPE_REPEATED

#define PB_FI_WIDTH_PB_HTYPE_REPEATED ( ltype)
Value:
2

◆ PB_FI_WIDTH_PB_HTYPE_REQUIRED

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

◆ PB_FI_WIDTH_PB_HTYPE_SINGULAR

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

◆ PB_FI_WIDTH_PB_LTYPE_BOOL

#define PB_FI_WIDTH_PB_LTYPE_BOOL   1

◆ PB_FI_WIDTH_PB_LTYPE_BYTES

#define PB_FI_WIDTH_PB_LTYPE_BYTES   2

◆ PB_FI_WIDTH_PB_LTYPE_DOUBLE

#define PB_FI_WIDTH_PB_LTYPE_DOUBLE   1

◆ PB_FI_WIDTH_PB_LTYPE_ENUM

#define PB_FI_WIDTH_PB_LTYPE_ENUM   1

◆ PB_FI_WIDTH_PB_LTYPE_EXTENSION

#define PB_FI_WIDTH_PB_LTYPE_EXTENSION   1

◆ PB_FI_WIDTH_PB_LTYPE_FIXED32

#define PB_FI_WIDTH_PB_LTYPE_FIXED32   1

◆ PB_FI_WIDTH_PB_LTYPE_FIXED64

#define PB_FI_WIDTH_PB_LTYPE_FIXED64   1

◆ PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES   2

◆ PB_FI_WIDTH_PB_LTYPE_FLOAT

#define PB_FI_WIDTH_PB_LTYPE_FLOAT   1

◆ PB_FI_WIDTH_PB_LTYPE_INT32

#define PB_FI_WIDTH_PB_LTYPE_INT32   1

◆ PB_FI_WIDTH_PB_LTYPE_INT64

#define PB_FI_WIDTH_PB_LTYPE_INT64   1

◆ PB_FI_WIDTH_PB_LTYPE_MESSAGE

#define PB_FI_WIDTH_PB_LTYPE_MESSAGE   2

◆ PB_FI_WIDTH_PB_LTYPE_MSG_W_CB

#define PB_FI_WIDTH_PB_LTYPE_MSG_W_CB   2

◆ PB_FI_WIDTH_PB_LTYPE_SFIXED32

#define PB_FI_WIDTH_PB_LTYPE_SFIXED32   1

◆ PB_FI_WIDTH_PB_LTYPE_SFIXED64

#define PB_FI_WIDTH_PB_LTYPE_SFIXED64   1

◆ PB_FI_WIDTH_PB_LTYPE_SINT32

#define PB_FI_WIDTH_PB_LTYPE_SINT32   1

◆ PB_FI_WIDTH_PB_LTYPE_SINT64

#define PB_FI_WIDTH_PB_LTYPE_SINT64   1

◆ PB_FI_WIDTH_PB_LTYPE_STRING

#define PB_FI_WIDTH_PB_LTYPE_STRING   2

◆ PB_FI_WIDTH_PB_LTYPE_UENUM

#define PB_FI_WIDTH_PB_LTYPE_UENUM   1

◆ PB_FI_WIDTH_PB_LTYPE_UINT32

#define PB_FI_WIDTH_PB_LTYPE_UINT32   1

◆ PB_FI_WIDTH_PB_LTYPE_UINT64

#define PB_FI_WIDTH_PB_LTYPE_UINT64   1

◆ 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)),

◆ 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)),

◆ 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),

◆ 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,

◆ 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:184
#define PB_FITS(value, bits)
Definition pb.h:799

◆ 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)

◆ 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)

◆ 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)

◆ 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:632

◆ 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)

◆ 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:587

◆ 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)

◆ PB_FIELDINFO_WIDTH_AUTO

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

◆ PB_FITS

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

◆ PB_GEN_FIELD_COUNT

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

◆ 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:774

◆ 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:778

◆ 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:782

◆ 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:787

◆ 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:800

◆ 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:803

◆ 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:808

◆ 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:811

◆ 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_WIDTH_AUTO(atype, htype, ltype)
Definition pb.h:832
#define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size)
Definition pb.h:629

◆ 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:584

◆ PB_GEN_LARGEST_TAG

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

◆ 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:283

◆ 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)

◆ PB_GET_ERROR

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

◆ PB_HTYPE

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

◆ PB_HTYPE_FIXARRAY

#define PB_HTYPE_FIXARRAY   0x20U

◆ PB_HTYPE_MASK

#define PB_HTYPE_MASK   0x30U

◆ PB_HTYPE_ONEOF

#define PB_HTYPE_ONEOF   0x30U

◆ PB_HTYPE_OPTIONAL

#define PB_HTYPE_OPTIONAL   0x10U

◆ PB_HTYPE_REPEATED

#define PB_HTYPE_REPEATED   0x20U

◆ PB_HTYPE_REQUIRED

#define PB_HTYPE_REQUIRED   0x00U

◆ PB_HTYPE_SINGULAR

#define PB_HTYPE_SINGULAR   0x10U

◆ PB_INLINE_CONSTEXPR

#define PB_INLINE_CONSTEXPR   PB_CONSTEXPR

◆ PB_LTYPE

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

◆ PB_LTYPE_BOOL

#define PB_LTYPE_BOOL   0x00U /* bool */

◆ PB_LTYPE_BYTES

#define PB_LTYPE_BYTES   0x06U

◆ PB_LTYPE_EXTENSION

#define PB_LTYPE_EXTENSION   0x0AU

◆ PB_LTYPE_FIXED32

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

◆ PB_LTYPE_FIXED64

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

◆ PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_LTYPE_FIXED_LENGTH_BYTES   0x0BU

◆ 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:265
#define PB_LTYPE(x)
Definition pb.h:300
#define PB_LTYPE_SUBMESSAGE
Definition pb.h:260

◆ PB_LTYPE_LAST_PACKABLE

#define PB_LTYPE_LAST_PACKABLE   0x05U

◆ PB_LTYPE_MAP_BOOL

#define PB_LTYPE_MAP_BOOL   PB_LTYPE_BOOL

◆ PB_LTYPE_MAP_BYTES

#define PB_LTYPE_MAP_BYTES   PB_LTYPE_BYTES

◆ PB_LTYPE_MAP_DOUBLE

#define PB_LTYPE_MAP_DOUBLE   PB_LTYPE_FIXED64

◆ PB_LTYPE_MAP_ENUM

#define PB_LTYPE_MAP_ENUM   PB_LTYPE_VARINT

◆ PB_LTYPE_MAP_EXTENSION

#define PB_LTYPE_MAP_EXTENSION   PB_LTYPE_EXTENSION

◆ PB_LTYPE_MAP_FIXED32

#define PB_LTYPE_MAP_FIXED32   PB_LTYPE_FIXED32

◆ PB_LTYPE_MAP_FIXED64

#define PB_LTYPE_MAP_FIXED64   PB_LTYPE_FIXED64

◆ PB_LTYPE_MAP_FIXED_LENGTH_BYTES

#define PB_LTYPE_MAP_FIXED_LENGTH_BYTES   PB_LTYPE_FIXED_LENGTH_BYTES

◆ PB_LTYPE_MAP_FLOAT

#define PB_LTYPE_MAP_FLOAT   PB_LTYPE_FIXED32

◆ PB_LTYPE_MAP_INT32

#define PB_LTYPE_MAP_INT32   PB_LTYPE_VARINT

◆ PB_LTYPE_MAP_INT64

#define PB_LTYPE_MAP_INT64   PB_LTYPE_VARINT

◆ PB_LTYPE_MAP_MESSAGE

#define PB_LTYPE_MAP_MESSAGE   PB_LTYPE_SUBMESSAGE

◆ PB_LTYPE_MAP_MSG_W_CB

#define PB_LTYPE_MAP_MSG_W_CB   PB_LTYPE_SUBMSG_W_CB

◆ PB_LTYPE_MAP_SFIXED32

#define PB_LTYPE_MAP_SFIXED32   PB_LTYPE_FIXED32

◆ PB_LTYPE_MAP_SFIXED64

#define PB_LTYPE_MAP_SFIXED64   PB_LTYPE_FIXED64

◆ PB_LTYPE_MAP_SINT32

#define PB_LTYPE_MAP_SINT32   PB_LTYPE_SVARINT

◆ PB_LTYPE_MAP_SINT64

#define PB_LTYPE_MAP_SINT64   PB_LTYPE_SVARINT

◆ PB_LTYPE_MAP_STRING

#define PB_LTYPE_MAP_STRING   PB_LTYPE_STRING

◆ PB_LTYPE_MAP_UENUM

#define PB_LTYPE_MAP_UENUM   PB_LTYPE_UVARINT

◆ PB_LTYPE_MAP_UINT32

#define PB_LTYPE_MAP_UINT32   PB_LTYPE_UVARINT

◆ PB_LTYPE_MAP_UINT64

#define PB_LTYPE_MAP_UINT64   PB_LTYPE_UVARINT

◆ PB_LTYPE_MASK

#define PB_LTYPE_MASK   0x0FU

◆ PB_LTYPE_STRING

#define PB_LTYPE_STRING   0x07U

◆ PB_LTYPE_SUBMESSAGE

#define PB_LTYPE_SUBMESSAGE   0x08U

◆ PB_LTYPE_SUBMSG_W_CB

#define PB_LTYPE_SUBMSG_W_CB   0x09U

◆ PB_LTYPE_SVARINT

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

◆ PB_LTYPE_UVARINT

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

◆ PB_LTYPE_VARINT

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

◆ PB_LTYPES_COUNT

#define PB_LTYPES_COUNT   0x0CU

◆ PB_MAX_REQUIRED_FIELDS

#define PB_MAX_REQUIRED_FIELDS   64

◆ pb_membersize

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

◆ PB_ONEOF_NAME

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

◆ PB_ONEOF_NAME_FULL

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

◆ PB_ONEOF_NAME_MEMBER

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

◆ PB_ONEOF_NAME_UNION

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

◆ pb_packed

#define pb_packed

◆ PB_PACKED_STRUCT_END

#define PB_PACKED_STRUCT_END

◆ PB_PACKED_STRUCT_START

#define PB_PACKED_STRUCT_START

◆ PB_PROGMEM

#define PB_PROGMEM

◆ PB_PROGMEM_READU32

#define PB_PROGMEM_READU32 ( x)
Value:
(x)

◆ PB_PROTO_HEADER_VERSION

#define PB_PROTO_HEADER_VERSION   40

◆ 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:903

◆ PB_SET_ERROR

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

◆ PB_SI_PB_LTYPE_BOOL

#define PB_SI_PB_LTYPE_BOOL ( t)

◆ PB_SI_PB_LTYPE_BYTES

#define PB_SI_PB_LTYPE_BYTES ( t)

◆ PB_SI_PB_LTYPE_DOUBLE

#define PB_SI_PB_LTYPE_DOUBLE ( t)

◆ PB_SI_PB_LTYPE_ENUM

#define PB_SI_PB_LTYPE_ENUM ( t)

◆ PB_SI_PB_LTYPE_EXTENSION

#define PB_SI_PB_LTYPE_EXTENSION ( t)

◆ PB_SI_PB_LTYPE_FIXED32

#define PB_SI_PB_LTYPE_FIXED32 ( t)

◆ PB_SI_PB_LTYPE_FIXED64

#define PB_SI_PB_LTYPE_FIXED64 ( t)

◆ PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES

#define PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES ( t)

◆ PB_SI_PB_LTYPE_FLOAT

#define PB_SI_PB_LTYPE_FLOAT ( t)

◆ PB_SI_PB_LTYPE_INT32

#define PB_SI_PB_LTYPE_INT32 ( t)

◆ PB_SI_PB_LTYPE_INT64

#define PB_SI_PB_LTYPE_INT64 ( t)

◆ PB_SI_PB_LTYPE_MESSAGE

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

◆ PB_SI_PB_LTYPE_MSG_W_CB

#define PB_SI_PB_LTYPE_MSG_W_CB ( t)

◆ PB_SI_PB_LTYPE_SFIXED32

#define PB_SI_PB_LTYPE_SFIXED32 ( t)

◆ PB_SI_PB_LTYPE_SFIXED64

#define PB_SI_PB_LTYPE_SFIXED64 ( t)

◆ PB_SI_PB_LTYPE_SINT32

#define PB_SI_PB_LTYPE_SINT32 ( t)

◆ PB_SI_PB_LTYPE_SINT64

#define PB_SI_PB_LTYPE_SINT64 ( t)

◆ PB_SI_PB_LTYPE_STRING

#define PB_SI_PB_LTYPE_STRING ( t)

◆ PB_SI_PB_LTYPE_UENUM

#define PB_SI_PB_LTYPE_UENUM ( t)

◆ PB_SI_PB_LTYPE_UINT32

#define PB_SI_PB_LTYPE_UINT32 ( t)

◆ PB_SI_PB_LTYPE_UINT64

#define PB_SI_PB_LTYPE_UINT64 ( t)

◆ PB_SIZE_MAX

#define PB_SIZE_MAX   ((pb_size_t)-1)

◆ PB_SIZE_OFFSET_CALLBACK

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

◆ PB_SIZE_OFFSET_POINTER

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

◆ PB_SIZE_OFFSET_STATIC

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

◆ PB_SO_CB_PB_HTYPE_FIXARRAY

#define PB_SO_CB_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

◆ PB_SO_CB_PB_HTYPE_ONEOF

#define PB_SO_CB_PB_HTYPE_ONEOF ( structname,
fieldname )
Value:
PB_SO_PB_HTYPE_ONEOF(structname, fieldname)
#define PB_SO_PB_HTYPE_ONEOF(structname, fieldname)
Definition pb.h:650

◆ PB_SO_CB_PB_HTYPE_OPTIONAL

#define PB_SO_CB_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
0

◆ PB_SO_CB_PB_HTYPE_REPEATED

#define PB_SO_CB_PB_HTYPE_REPEATED ( structname,
fieldname )
Value:
0

◆ PB_SO_CB_PB_HTYPE_REQUIRED

#define PB_SO_CB_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

◆ PB_SO_CB_PB_HTYPE_SINGULAR

#define PB_SO_CB_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

◆ PB_SO_PB_HTYPE_FIXARRAY

#define PB_SO_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

◆ 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:651

◆ 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:652

◆ 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:509

◆ PB_SO_PB_HTYPE_OPTIONAL

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

◆ PB_SO_PB_HTYPE_REPEATED

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

◆ PB_SO_PB_HTYPE_REQUIRED

#define PB_SO_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

◆ PB_SO_PB_HTYPE_SINGULAR

#define PB_SO_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

◆ PB_SO_PTR_PB_HTYPE_FIXARRAY

#define PB_SO_PTR_PB_HTYPE_FIXARRAY ( structname,
fieldname )
Value:
0

◆ PB_SO_PTR_PB_HTYPE_ONEOF

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

◆ PB_SO_PTR_PB_HTYPE_OPTIONAL

#define PB_SO_PTR_PB_HTYPE_OPTIONAL ( structname,
fieldname )
Value:
0

◆ 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:654

◆ PB_SO_PTR_PB_HTYPE_REQUIRED

#define PB_SO_PTR_PB_HTYPE_REQUIRED ( structname,
fieldname )
Value:
0

◆ PB_SO_PTR_PB_HTYPE_SINGULAR

#define PB_SO_PTR_PB_HTYPE_SINGULAR ( structname,
fieldname )
Value:
0

◆ PB_STATIC_ASSERT

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

◆ PB_SUBMSG_DESCRIPTOR

#define PB_SUBMSG_DESCRIPTOR ( t)
Value:
(t::msg_descriptor()),

◆ PB_SUBMSG_INFO_FIXARRAY

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

◆ 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:719

◆ 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:720

◆ PB_SUBMSG_INFO_ONEOF3

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

◆ PB_SUBMSG_INFO_OPTIONAL

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

◆ PB_SUBMSG_INFO_REPEATED

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

◆ PB_SUBMSG_INFO_REQUIRED

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

◆ PB_SUBMSG_INFO_SINGULAR

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

◆ PB_UNUSED

#define PB_UNUSED ( x)
Value:
(void)(x)

Typedef Documentation

◆ pb_byte_t

typedef uint_least8_t pb_byte_t

◆ pb_bytes_array_t

◆ pb_callback_t

typedef struct pb_callback_s pb_callback_t

◆ pb_extension_t

◆ pb_extension_type_t

◆ pb_field_iter_t

◆ pb_field_t

◆ pb_filedesc_t

typedef struct pb_filedesc_s pb_filedesc_t

◆ pb_istream_t

typedef struct pb_istream_s pb_istream_t

◆ pb_msgdesc_t

typedef struct pb_msgdesc_s pb_msgdesc_t

◆ pb_ostream_t

typedef struct pb_ostream_s pb_ostream_t

◆ pb_size_t

typedef uint_least16_t pb_size_t

◆ pb_ssize_t

typedef int_least16_t pb_ssize_t

◆ pb_type_t

Enumeration Type Documentation

◆ pb_wire_type_t

Enumerator
PB_WT_VARINT 
PB_WT_64BIT 
PB_WT_STRING 
PB_WT_32BIT 
PB_WT_PACKED 

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

◆ PB_STATIC_ASSERT()

PB_STATIC_ASSERT ( sizeof(int64_t) = = 2 * sizeof(int32_t),
INT64_T_WRONG_SIZE  )