WPILibC++ 2025.1.1
|
#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) |
#define NANOPB_VERSION "nanopb-0.4.9" |
#define PB_ARRAY_SIZE_CALLBACK | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_ARRAY_SIZE_POINTER | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_ARRAY_SIZE_STATIC | ( | htype, | |
structname, | |||
fieldname ) |
#define pb_arraysize | ( | st, | |
m ) |
#define PB_AS_PB_HTYPE_FIXARRAY | ( | structname, | |
fieldname ) |
#define PB_AS_PB_HTYPE_ONEOF | ( | structname, | |
fieldname ) |
#define PB_AS_PB_HTYPE_OPTIONAL | ( | structname, | |
fieldname ) |
#define PB_AS_PB_HTYPE_REPEATED | ( | structname, | |
fieldname ) |
#define PB_AS_PB_HTYPE_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_AS_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_FIXARRAY | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_ONEOF | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_OPTIONAL | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_REPEATED | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_AS_PTR_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_ATYPE | ( | x | ) |
#define PB_ATYPE_CALLBACK 0x40U |
#define PB_ATYPE_MASK 0xC0U |
#define PB_ATYPE_POINTER 0x80U |
#define PB_ATYPE_STATIC 0x00U |
#define PB_BIND | ( | msgname, | |
structname, | |||
width ) |
#define PB_BYTES_ARRAY_T | ( | n | ) |
#define PB_BYTES_ARRAY_T_ALLOCSIZE | ( | n | ) |
#define PB_CONSTEXPR |
#define PB_DATA_OFFSET_CALLBACK | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_DATA_OFFSET_POINTER | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_DATA_OFFSET_STATIC | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_DATA_SIZE_CALLBACK | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_DATA_SIZE_POINTER | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_DATA_SIZE_STATIC | ( | htype, | |
structname, | |||
fieldname ) |
#define pb_delta | ( | st, | |
m1, | |||
m2 ) |
#define PB_DO_PB_HTYPE_FIXARRAY | ( | 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_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_DO_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_FIXARRAY | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_ONEOF | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_OPTIONAL | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_REPEATED | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_DS_CB_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_FIXARRAY | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_ONEOF | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_OPTIONAL | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_REPEATED | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_DS_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_FIXARRAY | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_ONEOF | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_OPTIONAL | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_REPEATED | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_DS_PTR_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_EXPAND | ( | x | ) |
#define pb_extension_init_zero {NULL,NULL,NULL,false} |
#define PB_FI_WIDTH_PB_ATYPE_CALLBACK | ( | htype, | |
ltype ) |
#define PB_FI_WIDTH_PB_ATYPE_POINTER | ( | htype, | |
ltype ) |
#define PB_FI_WIDTH_PB_ATYPE_STATIC | ( | htype, | |
ltype ) |
#define PB_FI_WIDTH_PB_HTYPE_FIXARRAY | ( | ltype | ) |
#define PB_FI_WIDTH_PB_HTYPE_ONEOF | ( | ltype | ) |
#define PB_FI_WIDTH_PB_HTYPE_OPTIONAL | ( | ltype | ) |
#define PB_FI_WIDTH_PB_HTYPE_REPEATED | ( | ltype | ) |
#define PB_FI_WIDTH_PB_HTYPE_REQUIRED | ( | ltype | ) |
#define PB_FI_WIDTH_PB_HTYPE_SINGULAR | ( | 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_EXTENSION 1 |
#define PB_FI_WIDTH_PB_LTYPE_FIXED32 1 |
#define PB_FI_WIDTH_PB_LTYPE_FIXED64 1 |
#define PB_FI_WIDTH_PB_LTYPE_FIXED_LENGTH_BYTES 2 |
#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_UENUM 1 |
#define PB_FI_WIDTH_PB_LTYPE_UINT32 1 |
#define PB_FI_WIDTH_PB_LTYPE_UINT64 1 |
#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_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_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_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_FIELDINFO_WIDTH_AUTO | ( | atype, | |
htype, | |||
ltype ) |
#define PB_FITS | ( | value, | |
bits ) |
#define PB_GEN_FIELD_COUNT | ( | 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_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_GEN_FIELD_INFO_AUTO | ( | structname, | |
atype, | |||
htype, | |||
ltype, | |||
fieldname, | |||
tag ) |
#define PB_GEN_LARGEST_TAG | ( | structname, | |
atype, | |||
htype, | |||
ltype, | |||
fieldname, | |||
tag ) |
#define PB_GEN_REQ_FIELD_COUNT | ( | structname, | |
atype, | |||
htype, | |||
ltype, | |||
fieldname, | |||
tag ) |
#define PB_GEN_SUBMSG_INFO | ( | structname, | |
atype, | |||
htype, | |||
ltype, | |||
fieldname, | |||
tag ) |
#define PB_GET_ERROR | ( | stream | ) |
#define PB_HTYPE | ( | x | ) |
#define PB_HTYPE_FIXARRAY 0x20U |
#define PB_HTYPE_MASK 0x30U |
#define PB_HTYPE_ONEOF 0x30U |
#define PB_HTYPE_OPTIONAL 0x10U |
#define PB_HTYPE_REPEATED 0x20U |
#define PB_HTYPE_REQUIRED 0x00U |
#define PB_HTYPE_SINGULAR 0x10U |
#define PB_INLINE_CONSTEXPR PB_CONSTEXPR |
#define PB_LTYPE | ( | x | ) |
#define PB_LTYPE_BOOL 0x00U /* bool */ |
#define PB_LTYPE_BYTES 0x06U |
#define PB_LTYPE_EXTENSION 0x0AU |
#define PB_LTYPE_FIXED32 0x04U /* fixed32, sfixed32, float */ |
#define PB_LTYPE_FIXED64 0x05U /* fixed64, sfixed64, double */ |
#define PB_LTYPE_FIXED_LENGTH_BYTES 0x0BU |
#define PB_LTYPE_IS_SUBMSG | ( | x | ) |
#define PB_LTYPE_LAST_PACKABLE 0x05U |
#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_EXTENSION PB_LTYPE_EXTENSION |
#define PB_LTYPE_MAP_FIXED32 PB_LTYPE_FIXED32 |
#define PB_LTYPE_MAP_FIXED64 PB_LTYPE_FIXED64 |
#define PB_LTYPE_MAP_FIXED_LENGTH_BYTES PB_LTYPE_FIXED_LENGTH_BYTES |
#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_UENUM PB_LTYPE_UVARINT |
#define PB_LTYPE_MAP_UINT32 PB_LTYPE_UVARINT |
#define PB_LTYPE_MAP_UINT64 PB_LTYPE_UVARINT |
#define PB_LTYPE_MASK 0x0FU |
#define PB_LTYPE_STRING 0x07U |
#define PB_LTYPE_SUBMESSAGE 0x08U |
#define PB_LTYPE_SUBMSG_W_CB 0x09U |
#define PB_LTYPE_SVARINT 0x03U /* sint32, sint64 */ |
#define PB_LTYPE_UVARINT 0x02U /* uint32, uint64 */ |
#define PB_LTYPE_VARINT 0x01U /* int32, int64, enum, bool */ |
#define PB_LTYPES_COUNT 0x0CU |
#define PB_MAX_REQUIRED_FIELDS 64 |
#define pb_membersize | ( | st, | |
m ) |
#define PB_ONEOF_NAME | ( | type, | |
tuple ) |
#define PB_ONEOF_NAME_FULL | ( | unionname, | |
membername, | |||
fullname ) |
#define PB_ONEOF_NAME_MEMBER | ( | unionname, | |
membername, | |||
fullname ) |
#define PB_ONEOF_NAME_UNION | ( | unionname, | |
membername, | |||
fullname ) |
#define pb_packed |
#define PB_PACKED_STRUCT_END |
#define PB_PACKED_STRUCT_START |
#define PB_PROGMEM |
#define PB_PROGMEM_READU32 | ( | x | ) |
#define PB_PROTO_HEADER_VERSION 40 |
#define PB_RETURN_ERROR | ( | stream, | |
msg ) |
#define PB_SET_ERROR | ( | stream, | |
msg ) |
#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_EXTENSION | ( | t | ) |
#define PB_SI_PB_LTYPE_FIXED32 | ( | t | ) |
#define PB_SI_PB_LTYPE_FIXED64 | ( | t | ) |
#define PB_SI_PB_LTYPE_FIXED_LENGTH_BYTES | ( | 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_UENUM | ( | t | ) |
#define PB_SI_PB_LTYPE_UINT32 | ( | t | ) |
#define PB_SI_PB_LTYPE_UINT64 | ( | t | ) |
#define PB_SIZE_MAX ((pb_size_t)-1) |
#define PB_SIZE_OFFSET_CALLBACK | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_SIZE_OFFSET_POINTER | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_SIZE_OFFSET_STATIC | ( | htype, | |
structname, | |||
fieldname ) |
#define PB_SO_CB_PB_HTYPE_FIXARRAY | ( | 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_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_SO_CB_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_SO_PB_HTYPE_FIXARRAY | ( | 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_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_SO_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_SO_PTR_PB_HTYPE_FIXARRAY | ( | 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_REQUIRED | ( | structname, | |
fieldname ) |
#define PB_SO_PTR_PB_HTYPE_SINGULAR | ( | structname, | |
fieldname ) |
#define PB_STATIC_ASSERT | ( | COND, | |
MSG ) |
#define PB_SUBMSG_DESCRIPTOR | ( | t | ) |
#define PB_SUBMSG_INFO_FIXARRAY | ( | 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_OPTIONAL | ( | ltype, | |
structname, | |||
fieldname ) |
#define PB_SUBMSG_INFO_REPEATED | ( | ltype, | |
structname, | |||
fieldname ) |
#define PB_SUBMSG_INFO_REQUIRED | ( | ltype, | |
structname, | |||
fieldname ) |
#define PB_SUBMSG_INFO_SINGULAR | ( | ltype, | |
structname, | |||
fieldname ) |
#define PB_UNUSED | ( | x | ) |
typedef uint_least8_t pb_byte_t |
typedef struct pb_bytes_array_s pb_bytes_array_t |
typedef struct pb_callback_s pb_callback_t |
typedef struct pb_extension_s pb_extension_t |
typedef struct pb_extension_type_s pb_extension_type_t |
typedef struct pb_field_iter_s pb_field_iter_t |
typedef pb_field_iter_t pb_field_t |
typedef struct pb_filedesc_s pb_filedesc_t |
typedef struct pb_istream_s pb_istream_t |
typedef struct pb_msgdesc_s pb_msgdesc_t |
typedef struct pb_ostream_s pb_ostream_t |
typedef uint_least16_t pb_size_t |
typedef int_least16_t pb_ssize_t |
enum pb_wire_type_t |
|
extern |
PB_STATIC_ASSERT | ( | sizeof(int64_t) | = = 2 * sizeof(int32_t), |
INT64_T_WRONG_SIZE | ) |