Sha256: 51a4bbc301e2dbd1f2a76f03bcd5d59ab2b7d143ecb91578c52f8379d98d076b

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

Contents

#ifndef UPB_TEXTENCODE_H_
#define UPB_TEXTENCODE_H_

#include "upb/def.h"

#ifdef __cplusplus
extern "C" {
#endif

enum {
  /* When set, prints everything on a single line. */
  UPB_TXTENC_SINGLELINE = 1,

  /* When set, unknown fields are not printed. */
  UPB_TXTENC_SKIPUNKNOWN = 2,

  /* When set, maps are *not* sorted (this avoids allocating tmp mem). */
  UPB_TXTENC_NOSORT = 4
};

/* Encodes the given |msg| to text format.  The message's reflection is given in
 * |m|.  The symtab in |symtab| is used to find extensions (if NULL, extensions
 * will not be printed).
 *
 * Output is placed in the given buffer, and always NULL-terminated.  The output
 * size (excluding NULL) is returned.  This means that a return value >= |size|
 * implies that the output was truncated.  (These are the same semantics as
 * snprintf()). */
size_t upb_text_encode(const upb_msg *msg, const upb_msgdef *m,
                       const upb_symtab *ext_pool, int options, char *buf,
                       size_t size);

#ifdef __cplusplus
}  /* extern "C" */
#endif

#endif  /* UPB_TEXTENCODE_H_ */

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grpc-1.40.0 third_party/upb/upb/text_encode.h
grpc-1.39.0 third_party/upb/upb/text_encode.h
grpc-1.40.0.pre1 third_party/upb/upb/text_encode.h
grpc-1.39.0.pre1 third_party/upb/upb/text_encode.h
grpc-1.38.0 third_party/upb/upb/text_encode.h
grpc-1.38.0.pre1 third_party/upb/upb/text_encode.h
grpc-1.37.1 third_party/upb/upb/text_encode.h
grpc-1.37.0 third_party/upb/upb/text_encode.h
grpc-1.37.0.pre1 third_party/upb/upb/text_encode.h
grpc-1.36.0 third_party/upb/upb/text_encode.h
grpc-1.35.0 third_party/upb/upb/text_encode.h
grpc-1.35.0.pre1 third_party/upb/upb/text_encode.h