summaryrefslogtreecommitdiff
path: root/upb/sink.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
commit2d10fa33071d52d7a35ce3b13bc459cd16a0aa33 (patch)
treebf47d38e2e1cc8ddb4711b23b26e7fd10742e07d /upb/sink.h
parent7d565f1e7a0f107506d3cf31ef2e33e22a504d2b (diff)
Sync from internal Google development.
Diffstat (limited to 'upb/sink.h')
-rw-r--r--upb/sink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/upb/sink.h b/upb/sink.h
index d8322e1..d2bb095 100644
--- a/upb/sink.h
+++ b/upb/sink.h
@@ -476,6 +476,11 @@ inline bool Sink::EndSequence(Handlers::Selector sel) {
}
template <class T>
+BytesSink::BytesSink(const BytesHandler* handler, T* closure) {
+ Reset(handler, closure);
+}
+
+template <class T>
void BytesSink::Reset(const BytesHandler *handler, T *closure) {
upb_bytessink_reset(this, handler, closure);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback