Go to the documentation of this file.
33 #ifndef UPB_DECODE_INT_H_
34 #define UPB_DECODE_INT_H_
44 #include "upb/port_def.inc"
46 #define DECODE_NOGROUP (uint32_t) - 1
89 if (
data & 0x8080808080808080)
goto non_ascii;
95 if (*
ptr & 0x80)
goto non_ascii;
121 int overrun,
int*
status) {
122 if (overrun < d->limit) {
125 if (
d->unknown_msg) {
131 d->unknown = &
d->patch[0] + overrun;
135 ptr = &
d->patch[0] + overrun;
136 d->end = &
d->patch[16];
138 d->limit_ptr =
d->end +
d->limit;
152 int overrun = *
ptr -
d->end;
192 int delta =
d->limit - limit;
195 d->limit_ptr =
d->end +
UPB_MIN(0, limit);
204 d->limit += saved_delta;
209 #include "upb/port_undef.inc"
return memset(p, 0, total)
const char * decode_isdonefallback(upb_Decoder *d, const char *ptr, int overrun)
UPB_INLINE void decode_poplimit(upb_Decoder *d, const char *ptr, int saved_delta)
@ kUpb_DecodeStatus_Malformed
_upb_FastTable_Entry fasttable[]
const char * decode_checkrequired(upb_Decoder *d, const char *ptr, const upb_Message *msg, const upb_MiniTable *l)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
UPB_INLINE int decode_pushlimit(upb_Decoder *d, const char *ptr, int size)
static void * tag(intptr_t t)
upb_Message * unknown_msg
static int utf8_range2(const unsigned char *data, int len)
UPB_INLINE uint32_t fastdecode_loadtag(const char *ptr)
unsigned __int64 uint64_t
const upb_ExtensionRegistry * extreg
@ kUpb_DecodeOption_AliasString
UPB_INLINE void decode_checklimit(upb_Decoder *d)
bool _upb_Message_AddUnknown(upb_Message *msg, const char *data, size_t len, upb_Arena *arena)
const char * debug_tagstart
const char * fastdecode_err(upb_Decoder *d, int status)
const UPB_INLINE char * decode_isdonefallback_inl(upb_Decoder *d, const char *ptr, int overrun, int *status)
const char * debug_valstart
const uint8_t upb_utf8_offsets[]
struct upb_Decoder upb_Decoder
@ kUpb_DecodeStatus_OutOfMemory
UPB_INLINE bool decode_verifyutf8_inl(const char *ptr, int len)
const UPB_INLINE upb_MiniTable * decode_totablep(intptr_t table)
_upb_FieldParser * field_parser
UPB_INLINE intptr_t decode_totable(const upb_MiniTable *tablep)
UPB_INLINE bool decode_isdone(upb_Decoder *d, const char **ptr)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:02