From 6803ed8674028a656957910381150ab28d75a5f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 31 Aug 2018 17:11:08 -0700 Subject: [PATCH] [serialize] Add reset() --- src/hb-machinery.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 26392b323..3f8675434 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -437,7 +437,11 @@ struct hb_serialize_context_t { this->start = (char *) start_; this->end = this->start + size; + reset (); + } + inline void reset (void) + { this->ran_out_of_room = false; this->head = this->start; this->debug_depth = 0;