summaryrefslogtreecommitdiff
path: root/upb/pb/encoder.h
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/pb/encoder.h
parent9349b703a33c76b0d50a15c6d372e8948e045749 (diff)
Added some comments and reversed upb_arena_cleanup() args.
Diffstat (limited to 'upb/pb/encoder.h')
-rw-r--r--upb/pb/encoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/upb/pb/encoder.h b/upb/pb/encoder.h
index 780f60f..1113c3a 100644
--- a/upb/pb/encoder.h
+++ b/upb/pb/encoder.h
@@ -43,6 +43,8 @@ upb_sink upb_pb_encoder_input(upb_pb_encoder *p);
upb_pb_encoder* upb_pb_encoder_create(upb_arena* a, const upb_handlers* h,
upb_bytessink output);
+/* 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_pb_encoder_newcache();
#ifdef __cplusplus
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback