Classes | Macros | Functions
text_encode.c File Reference
#include "upb/text_encode.h"
#include <ctype.h>
#include <float.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "upb/reflection.h"
#include "upb/upb_internal.h"
#include "upb/port_def.inc"
Include dependency graph for text_encode.c:

Go to the source code of this file.

Classes

struct  txtenc
 

Macros

#define CHK(x)
 

Functions

static void txtenc_array (txtenc *e, const upb_Array *arr, const upb_FieldDef *f)
 
static void txtenc_endfield (txtenc *e)
 
static void txtenc_enum (int32_t val, const upb_FieldDef *f, txtenc *e)
 
static void txtenc_field (txtenc *e, upb_MessageValue val, const upb_FieldDef *f)
 
static void txtenc_indent (txtenc *e)
 
static void txtenc_map (txtenc *e, const upb_Map *map, const upb_FieldDef *f)
 
static void txtenc_mapentry (txtenc *e, upb_MessageValue key, upb_MessageValue val, const upb_FieldDef *f)
 
static void txtenc_msg (txtenc *e, const upb_Message *msg, const upb_MessageDef *m)
 
size_t txtenc_nullz (txtenc *e, size_t size)
 
static const char * txtenc_parsevarint (const char *ptr, const char *limit, uint64_t *val)
 
static void txtenc_printf (txtenc *e, const char *fmt,...)
 
static void txtenc_putbytes (txtenc *e, const void *data, size_t len)
 
static void txtenc_putstr (txtenc *e, const char *str)
 
static void txtenc_string (txtenc *e, upb_StringView str, bool bytes)
 
static const char * txtenc_unknown (txtenc *e, const char *ptr, const char *end, int groupnum)
 
size_t upb_TextEncode (const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, int options, char *buf, size_t size)
 

Macro Definition Documentation

◆ CHK

#define CHK (   x)
Value:
do { \
if (!(x)) { \
return false; \
} \
} while (0)

Definition at line 294 of file text_encode.c.

Function Documentation

◆ txtenc_array()

static void txtenc_array ( txtenc e,
const upb_Array arr,
const upb_FieldDef f 
)
static

Definition at line 228 of file text_encode.c.

◆ txtenc_endfield()

static void txtenc_endfield ( txtenc e)
static

Definition at line 99 of file text_encode.c.

◆ txtenc_enum()

static void txtenc_enum ( int32_t  val,
const upb_FieldDef f,
txtenc e 
)
static

Definition at line 107 of file text_encode.c.

◆ txtenc_field()

static void txtenc_field ( txtenc e,
upb_MessageValue  val,
const upb_FieldDef f 
)
static

Definition at line 157 of file text_encode.c.

◆ txtenc_indent()

static void txtenc_indent ( txtenc e)
static

Definition at line 90 of file text_encode.c.

◆ txtenc_map()

static void txtenc_map ( txtenc e,
const upb_Map map,
const upb_FieldDef f 
)
static

Definition at line 269 of file text_encode.c.

◆ txtenc_mapentry()

static void txtenc_mapentry ( txtenc e,
upb_MessageValue  key,
upb_MessageValue  val,
const upb_FieldDef f 
)
static

Definition at line 238 of file text_encode.c.

◆ txtenc_msg()

static void txtenc_msg ( txtenc e,
const upb_Message msg,
const upb_MessageDef m 
)
static

Definition at line 415 of file text_encode.c.

◆ txtenc_nullz()

size_t txtenc_nullz ( txtenc e,
size_t  size 
)

Definition at line 444 of file text_encode.c.

◆ txtenc_parsevarint()

static const char* txtenc_parsevarint ( const char *  ptr,
const char *  limit,
uint64_t val 
)
static

Definition at line 301 of file text_encode.c.

◆ txtenc_printf()

static void txtenc_printf ( txtenc e,
const char *  fmt,
  ... 
)
static

Definition at line 73 of file text_encode.c.

◆ txtenc_putbytes()

static void txtenc_putbytes ( txtenc e,
const void *  data,
size_t  len 
)
static

Definition at line 55 of file text_encode.c.

◆ txtenc_putstr()

static void txtenc_putstr ( txtenc e,
const char *  str 
)
static

Definition at line 69 of file text_encode.c.

◆ txtenc_string()

static void txtenc_string ( txtenc e,
upb_StringView  str,
bool  bytes 
)
static

Definition at line 118 of file text_encode.c.

◆ txtenc_unknown()

static const char* txtenc_unknown ( txtenc e,
const char *  ptr,
const char *  end,
int  groupnum 
)
static

Definition at line 328 of file text_encode.c.

◆ upb_TextEncode()

size_t upb_TextEncode ( const upb_Message msg,
const upb_MessageDef m,
const upb_DefPool ext_pool,
int  options,
char *  buf,
size_t  size 
)

Definition at line 455 of file text_encode.c.

x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:34