Go to the source code of this file.
|
| enum | {
kUpb_DecodeOption_AliasString = 1
, kUpb_DecodeOption_CheckRequired = 2
, kUpb_DecodeOption_ExperimentalAllowUnlinked = 4
, kUpb_DecodeOption_AlwaysValidateUtf8 = 8
,
kUpb_DecodeOption_DisableFastTable = 16
} |
| |
| enum | upb_DecodeStatus {
kUpb_DecodeStatus_Ok = 0
, kUpb_DecodeStatus_Malformed = 1
, kUpb_DecodeStatus_OutOfMemory = 2
, kUpb_DecodeStatus_BadUtf8 = 3
,
kUpb_DecodeStatus_MaxDepthExceeded
, kUpb_DecodeStatus_MissingRequired = 5
, kUpb_DecodeStatus_UnlinkedSubMessage = 6
} |
| |
|
| UPB_INLINE uint32_t | upb_DecodeOptions_MaxDepth (uint16_t depth) |
| |
| uint16_t | upb_DecodeOptions_GetEffectiveMaxDepth (uint32_t options) |
| |
| UPB_INLINE int | upb_Decode_LimitDepth (uint32_t decode_options, uint32_t limit) |
| |
| UPB_API upb_DecodeStatus | upb_Decode (const char *buf, size_t size, upb_Message *msg, const upb_MiniTable *mt, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena) |
| |
| UPB_API upb_DecodeStatus | upb_DecodeLengthPrefixed (const char *buf, size_t size, upb_Message *msg, size_t *num_bytes_read, const upb_MiniTable *mt, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena) |
| |
| UPB_API upb_DecodeStatus | upb_DecodeWithTrace (const char *buf, size_t size, upb_Message *msg, const upb_MiniTable *mt, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena, char *trace_buf, size_t trace_size) |
| |
| UPB_API const char * | upb_DecodeStatus_String (upb_DecodeStatus status) |
| |
◆ anonymous enum
| Enumerator |
|---|
| kUpb_DecodeOption_AliasString | |
| kUpb_DecodeOption_CheckRequired | |
| kUpb_DecodeOption_ExperimentalAllowUnlinked | |
| kUpb_DecodeOption_AlwaysValidateUtf8 | |
| kUpb_DecodeOption_DisableFastTable | |
◆ upb_DecodeStatus
| Enumerator |
|---|
| kUpb_DecodeStatus_Ok | |
| kUpb_DecodeStatus_Malformed | |
| kUpb_DecodeStatus_OutOfMemory | |
| kUpb_DecodeStatus_BadUtf8 | |
| kUpb_DecodeStatus_MaxDepthExceeded | |
| kUpb_DecodeStatus_MissingRequired | |
| kUpb_DecodeStatus_UnlinkedSubMessage | |
◆ upb_Decode()
◆ upb_Decode_LimitDepth()
| UPB_INLINE int upb_Decode_LimitDepth |
( |
uint32_t | decode_options, |
|
|
uint32_t | limit ) |
◆ upb_DecodeLengthPrefixed()
◆ upb_DecodeOptions_GetEffectiveMaxDepth()
| uint16_t upb_DecodeOptions_GetEffectiveMaxDepth |
( |
uint32_t | options | ) |
|
◆ upb_DecodeOptions_MaxDepth()
| UPB_INLINE uint32_t upb_DecodeOptions_MaxDepth |
( |
uint16_t | depth | ) |
|
◆ upb_DecodeStatus_String()
◆ upb_DecodeWithTrace()