提交 6803ed86 编写于 作者: B Behdad Esfahbod

[serialize] Add reset()

上级 e58b1902
...@@ -437,7 +437,11 @@ struct hb_serialize_context_t ...@@ -437,7 +437,11 @@ struct hb_serialize_context_t
{ {
this->start = (char *) start_; this->start = (char *) start_;
this->end = this->start + size; this->end = this->start + size;
reset ();
}
inline void reset (void)
{
this->ran_out_of_room = false; this->ran_out_of_room = false;
this->head = this->start; this->head = this->start;
this->debug_depth = 0; this->debug_depth = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册