#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"
Go to the source code of this file.
|
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) |
|
◆ CHK
Value: do { \
return false; \
} \
} while (0)
Definition at line 294 of file text_encode.c.
◆ txtenc_array()
◆ txtenc_endfield()
static void txtenc_endfield |
( |
txtenc * |
e | ) |
|
|
static |
◆ txtenc_enum()
◆ txtenc_field()
◆ txtenc_indent()
static void txtenc_indent |
( |
txtenc * |
e | ) |
|
|
static |
◆ txtenc_map()
◆ txtenc_mapentry()
◆ txtenc_msg()
◆ txtenc_nullz()
size_t txtenc_nullz |
( |
txtenc * |
e, |
|
|
size_t |
size |
|
) |
| |
◆ txtenc_parsevarint()
◆ txtenc_printf()
static void txtenc_printf |
( |
txtenc * |
e, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
static |
◆ txtenc_putbytes()
static void txtenc_putbytes |
( |
txtenc * |
e, |
|
|
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ txtenc_putstr()
static void txtenc_putstr |
( |
txtenc * |
e, |
|
|
const char * |
str |
|
) |
| |
|
static |
◆ txtenc_string()
◆ txtenc_unknown()
◆ upb_TextEncode()