Go to the documentation of this file.
41 #include "upb/port_def.inc"
56 size_t have = e->end - e->ptr;
65 e->overflow += (
len - have);
75 size_t have = e->end - e->ptr;
86 e->overflow += (
n - have);
92 int i = e->indent_depth;
119 const char*
ptr =
str.data;
287 memcpy(&val, &ent.
v,
sizeof(val));
308 CHK(bitpos < 70 &&
ptr < limit);
310 *val |= (
uint64_t)(
byte & 0x7F) << bitpos;
313 }
while (
byte & 0x80);
371 char*
start = e->ptr;
372 size_t start_overflow = e->overflow;
389 e->overflow = start_overflow;
410 return groupnum == -1 ?
ptr : NULL;
434 char*
start = e->ptr;
445 size_t ret = e->ptr - e->buf + e->overflow;
448 if (e->ptr == e->end) e->ptr--;
466 e.ext_pool = ext_pool;
upb_FieldType upb_FieldDef_Type(const upb_FieldDef *f)
@ kUpb_WireType_Delimited
upb_MessageValue upb_MapIterator_Key(const upb_Map *map, size_t iter)
static const char * txtenc_unknown(txtenc *e, const char *ptr, const char *end, int groupnum)
int __cdecl vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
static void txtenc_endfield(txtenc *e)
const char * upb_EnumValueDef_Name(const upb_EnumValueDef *ev)
static void txtenc_msg(txtenc *e, const upb_Message *msg, const upb_MessageDef *m)
const char * upb_Message_GetUnknown(const upb_Message *msg, size_t *len)
#define UPB_UNREACHABLE()
static void txtenc_array(txtenc *e, const upb_Array *arr, const upb_FieldDef *f)
upb_MessageValue upb_Array_Get(const upb_Array *arr, size_t i)
bool _upb_mapsorter_pushmap(_upb_mapsorter *s, upb_descriptortype_t key_type, const upb_map *map, _upb_sortedmap *sorted)
static void txtenc_field(txtenc *e, upb_MessageValue val, const upb_FieldDef *f)
const upb_Array * array_val
union upb_MapEntry::@708 k
const upb_EnumValueDef * upb_EnumDef_FindValueByNumber(const upb_EnumDef *def, int32_t num)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
#define UPB_PTRADD(ptr, ofs)
static void txtenc_printf(txtenc *e, const char *fmt,...)
size_t txtenc_nullz(txtenc *e, size_t size)
#define kUpb_Message_Begin
bool upb_FieldDef_IsMap(const upb_FieldDef *f)
bool upb_MapIterator_Next(const upb_Map *map, size_t *iter)
static void * tag(intptr_t t)
unsigned __int64 uint64_t
union upb_MapEntry::@709 v
static void txtenc_putstr(txtenc *e, const char *str)
bool upb_Message_Next(const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, const upb_FieldDef **out_f, upb_MessageValue *out_val, size_t *iter)
const upb_Message * msg_val
upb_CType upb_FieldDef_CType(const upb_FieldDef *f)
UPB_INLINE bool _upb_sortedmap_next(_upb_mapsorter *s, const upb_map *map, _upb_sortedmap *sorted, upb_map_entry *ent)
UPB_INLINE void _upb_mapsorter_popmap(_upb_mapsorter *s, _upb_sortedmap *sorted)
const upb_MessageDef * upb_FieldDef_MessageSubDef(const upb_FieldDef *f)
UPB_INLINE void _upb_mapsorter_destroy(_upb_mapsorter *s)
const upb_EnumDef * upb_FieldDef_EnumSubDef(const upb_FieldDef *f)
size_t upb_Array_Size(const upb_Array *arr)
static void txtenc_enum(int32_t val, const upb_FieldDef *f, txtenc *e)
static void txtenc_putbytes(txtenc *e, const void *data, size_t len)
size_t upb_TextEncode(const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, int options, char *buf, size_t size)
GTEST_API_ const char * fmt
static void txtenc_mapentry(txtenc *e, upb_MessageValue key, upb_MessageValue val, const upb_FieldDef *f)
UPB_INLINE void _upb_mapsorter_init(_upb_mapsorter *s)
bool upb_FieldDef_IsRepeated(const upb_FieldDef *f)
UniquePtr< SSL_SESSION > ret
void _upb_EncodeRoundTripFloat(float val, char *buf, size_t size)
static const char * txtenc_parsevarint(const char *ptr, const char *limit, uint64_t *val)
const char * upb_FieldDef_Name(const upb_FieldDef *f)
static void txtenc_map(txtenc *e, const upb_Map *map, const upb_FieldDef *f)
const upb_FieldDef * upb_MessageDef_Field(const upb_MessageDef *m, int i)
upb_MessageValue upb_MapIterator_Value(const upb_Map *map, size_t iter)
static void txtenc_string(txtenc *e, upb_StringView str, bool bytes)
void _upb_EncodeRoundTripDouble(double val, char *buf, size_t size)
@ kUpb_WireType_StartGroup
const upb_DefPool * ext_pool
static void txtenc_indent(txtenc *e)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:35