#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "upb/port_def.inc"
#include "upb/port_undef.inc"
Go to the source code of this file.
|
enum | upb_CType {
kUpb_CType_Bool = 1,
kUpb_CType_Float = 2,
kUpb_CType_Int32 = 3,
kUpb_CType_UInt32 = 4,
kUpb_CType_Enum = 5,
kUpb_CType_Message = 6,
kUpb_CType_Double = 7,
kUpb_CType_Int64 = 8,
kUpb_CType_UInt64 = 9,
kUpb_CType_String = 10,
kUpb_CType_Bytes = 11
} |
|
enum | upb_FieldType {
kUpb_FieldType_Double = 1,
kUpb_FieldType_Float = 2,
kUpb_FieldType_Int64 = 3,
kUpb_FieldType_UInt64 = 4,
kUpb_FieldType_Int32 = 5,
kUpb_FieldType_Fixed64 = 6,
kUpb_FieldType_Fixed32 = 7,
kUpb_FieldType_Bool = 8,
kUpb_FieldType_String = 9,
kUpb_FieldType_Group = 10,
kUpb_FieldType_Message = 11,
kUpb_FieldType_Bytes = 12,
kUpb_FieldType_UInt32 = 13,
kUpb_FieldType_Enum = 14,
kUpb_FieldType_SFixed32 = 15,
kUpb_FieldType_SFixed64 = 16,
kUpb_FieldType_SInt32 = 17,
kUpb_FieldType_SInt64 = 18
} |
|
enum | upb_Label { kUpb_Label_Optional = 1,
kUpb_Label_Required = 2,
kUpb_Label_Repeated = 3
} |
|
enum | upb_WireType {
kUpb_WireType_Varint = 0,
kUpb_WireType_64Bit = 1,
kUpb_WireType_Delimited = 2,
kUpb_WireType_StartGroup = 3,
kUpb_WireType_EndGroup = 4,
kUpb_WireType_32Bit = 5
} |
|
|
UPB_INLINE void * | _upb_Arena_FastMalloc (upb_Arena *a, size_t size) |
|
void * | _upb_Arena_SlowMalloc (upb_Arena *a, size_t size) |
|
UPB_INLINE size_t | _upb_ArenaHas (upb_Arena *a) |
|
UPB_INLINE uint32_t | _upb_BigEndian_Swap32 (uint32_t val) |
|
UPB_INLINE uint64_t | _upb_BigEndian_Swap64 (uint64_t val) |
|
UPB_INLINE bool | _upb_IsLittleEndian (void) |
|
UPB_INLINE int | _upb_Log2Ceiling (int x) |
|
UPB_INLINE int | _upb_Log2CeilingSize (int x) |
|
bool | upb_Arena_AddCleanup (upb_Arena *a, void *ud, upb_CleanupFunc *func) |
|
UPB_INLINE upb_alloc * | upb_Arena_Alloc (upb_Arena *a) |
|
void | upb_Arena_Free (upb_Arena *a) |
|
bool | upb_Arena_Fuse (upb_Arena *a, upb_Arena *b) |
|
upb_Arena * | upb_Arena_Init (void *mem, size_t n, upb_alloc *alloc) |
|
UPB_INLINE void * | upb_Arena_Malloc (upb_Arena *a, size_t size) |
|
UPB_INLINE upb_Arena * | upb_Arena_New (void) |
|
UPB_INLINE void * | upb_Arena_Realloc (upb_Arena *a, void *ptr, size_t oldsize, size_t size) |
|
UPB_INLINE void | upb_Arena_ShrinkLast (upb_Arena *a, void *ptr, size_t oldsize, size_t size) |
|
UPB_INLINE void | upb_free (upb_alloc *alloc, void *ptr) |
|
UPB_INLINE void | upb_gfree (void *ptr) |
|
UPB_INLINE void * | upb_gmalloc (size_t size) |
|
UPB_INLINE void * | upb_grealloc (void *ptr, size_t oldsize, size_t size) |
|
UPB_INLINE void * | upb_malloc (upb_alloc *alloc, size_t size) |
|
UPB_INLINE void * | upb_realloc (upb_alloc *alloc, void *ptr, size_t oldsize, size_t size) |
|
void | upb_Status_Clear (upb_Status *status) |
|
const char * | upb_Status_ErrorMessage (const upb_Status *status) |
|
bool | upb_Status_IsOk (const upb_Status *status) |
|
void | upb_Status_SetErrorFormat (upb_Status *status, const char *fmt,...) UPB_PRINTF(2 |
|
void | upb_Status_SetErrorMessage (upb_Status *status, const char *msg) |
|
void void void | upb_Status_VAppendErrorFormat (upb_Status *status, const char *fmt, va_list args) UPB_PRINTF(2 |
|
void void | upb_Status_VSetErrorFormat (upb_Status *status, const char *fmt, va_list args) UPB_PRINTF(2 |
|
UPB_INLINE upb_StringView | upb_StringView_FromDataAndSize (const char *data, size_t size) |
|
UPB_INLINE upb_StringView | upb_StringView_FromString (const char *data) |
|
UPB_INLINE bool | upb_StringView_IsEqual (upb_StringView a, upb_StringView b) |
|
◆ _kUpb_Status_MaxMessage
#define _kUpb_Status_MaxMessage 127 |
◆ kUpb_Map_Begin
#define kUpb_Map_Begin ((size_t)-1) |
◆ UPB_STRINGVIEW_ARGS
#define UPB_STRINGVIEW_ARGS |
( |
|
view | ) |
(int)(view).size, (view).data |
◆ UPB_STRINGVIEW_FORMAT
#define UPB_STRINGVIEW_FORMAT "%.*s" |
◆ UPB_STRINGVIEW_INIT
◆ upb_alloc
◆ upb_alloc_func
◆ upb_Arena
◆ upb_CleanupFunc
typedef void upb_CleanupFunc(void *ud) |
◆ upb_CType
Enumerator |
---|
kUpb_CType_Bool | |
kUpb_CType_Float | |
kUpb_CType_Int32 | |
kUpb_CType_UInt32 | |
kUpb_CType_Enum | |
kUpb_CType_Message | |
kUpb_CType_Double | |
kUpb_CType_Int64 | |
kUpb_CType_UInt64 | |
kUpb_CType_String | |
kUpb_CType_Bytes | |
Definition at line 286 of file upb/upb/upb.h.
◆ upb_FieldType
Enumerator |
---|
kUpb_FieldType_Double | |
kUpb_FieldType_Float | |
kUpb_FieldType_Int64 | |
kUpb_FieldType_UInt64 | |
kUpb_FieldType_Int32 | |
kUpb_FieldType_Fixed64 | |
kUpb_FieldType_Fixed32 | |
kUpb_FieldType_Bool | |
kUpb_FieldType_String | |
kUpb_FieldType_Group | |
kUpb_FieldType_Message | |
kUpb_FieldType_Bytes | |
kUpb_FieldType_UInt32 | |
kUpb_FieldType_Enum | |
kUpb_FieldType_SFixed32 | |
kUpb_FieldType_SFixed64 | |
kUpb_FieldType_SInt32 | |
kUpb_FieldType_SInt64 | |
Definition at line 308 of file upb/upb/upb.h.
◆ upb_Label
Enumerator |
---|
kUpb_Label_Optional | |
kUpb_Label_Required | |
kUpb_Label_Repeated | |
Definition at line 301 of file upb/upb/upb.h.
◆ upb_WireType
Enumerator |
---|
kUpb_WireType_Varint | |
kUpb_WireType_64Bit | |
kUpb_WireType_Delimited | |
kUpb_WireType_StartGroup | |
kUpb_WireType_EndGroup | |
kUpb_WireType_32Bit | |
Definition at line 274 of file upb/upb/upb.h.
◆ _upb_Arena_FastMalloc()
◆ _upb_Arena_SlowMalloc()
void* _upb_Arena_SlowMalloc |
( |
upb_Arena * |
a, |
|
|
size_t |
size |
|
) |
| |
◆ _upb_ArenaHas()
◆ _upb_BigEndian_Swap32()
◆ _upb_BigEndian_Swap64()
◆ _upb_IsLittleEndian()
◆ _upb_Log2Ceiling()
◆ _upb_Log2CeilingSize()
◆ upb_Arena_AddCleanup()
◆ upb_Arena_Alloc()
◆ upb_Arena_Free()
◆ upb_Arena_Fuse()
◆ upb_Arena_Init()
◆ upb_Arena_Malloc()
◆ upb_Arena_New()
◆ upb_Arena_Realloc()
◆ upb_Arena_ShrinkLast()
UPB_INLINE void upb_Arena_ShrinkLast |
( |
upb_Arena * |
a, |
|
|
void * |
ptr, |
|
|
size_t |
oldsize, |
|
|
size_t |
size |
|
) |
| |
◆ upb_free()
◆ upb_gfree()
◆ upb_gmalloc()
◆ upb_grealloc()
UPB_INLINE void* upb_grealloc |
( |
void * |
ptr, |
|
|
size_t |
oldsize, |
|
|
size_t |
size |
|
) |
| |
◆ upb_malloc()
◆ upb_realloc()
◆ upb_Status_Clear()
◆ upb_Status_ErrorMessage()
◆ upb_Status_IsOk()
◆ upb_Status_SetErrorFormat()
void upb_Status_SetErrorFormat |
( |
upb_Status * |
status, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ upb_Status_SetErrorMessage()
◆ upb_Status_VAppendErrorFormat()
void void void upb_Status_VAppendErrorFormat |
( |
upb_Status * |
status, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ upb_Status_VSetErrorFormat()
void void upb_Status_VSetErrorFormat |
( |
upb_Status * |
status, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ upb_StringView_FromDataAndSize()
◆ upb_StringView_FromString()
◆ upb_StringView_IsEqual()
◆ upb_alloc_global