summaryrefslogtreecommitdiff
path: root/upb/json
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-15 14:48:09 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-15 14:48:09 -0800
commit2c26f60dbbc49bca6233cc20a15ff4b32454c6e8 (patch)
treeed3457ac04b937d8738f481e698cf001578880a9 /upb/json
parent9349b703a33c76b0d50a15c6d372e8948e045749 (diff)
Added some comments and reversed upb_arena_cleanup() args.
Diffstat (limited to 'upb/json')
-rw-r--r--upb/json/parser.h3
-rw-r--r--upb/json/printer.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/upb/json/parser.h b/upb/json/parser.h
index 6f3eaa7..c063a77 100644
--- a/upb/json/parser.h
+++ b/upb/json/parser.h
@@ -103,6 +103,9 @@ class upb::json::ParserPtr {
/* upb_json_codecache *********************************************************/
+/* Lazily builds and caches decoder methods that will push data to the given
+ * handlers. The upb_symtab object(s) must outlive this object. */
+
struct upb_json_codecache;
typedef struct upb_json_codecache upb_json_codecache;
diff --git a/upb/json/printer.h b/upb/json/printer.h
index 857ae47..85b9b12 100644
--- a/upb/json/printer.h
+++ b/upb/json/printer.h
@@ -36,6 +36,8 @@ const upb_handlers *upb_json_printer_newhandlers(const upb_msgdef *md,
bool preserve_fieldnames,
const void *owner);
+/* Lazily builds and caches handlers that will push encoded data to a bytessink.
+ * Any msgdef objects used with this object must outlive it. */
upb_handlercache *upb_json_printer_newcache(bool preserve_proto_fieldnames);
#ifdef __cplusplus
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback