提交 87f7c83f 编写于 作者: B Behdad Esfahbod

[serializer] Add operator <<

Not sure if we are going to use it.  But might incentivize us to.
上级 5b70074e
......@@ -599,6 +599,8 @@ struct hb_serialize_context_t
memcpy (ret, &obj, size);
return ret;
}
template <typename Type>
hb_serialize_context_t &operator << (const Type &obj) { embed (obj); return *this; }
template <typename Type>
Type *extend_size (Type &obj, unsigned int size)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册