[serializer] Add operator <<

Not sure if we are going to use it.  But might incentivize us to.
This commit is contained in:
Behdad Esfahbod 2018-12-20 15:54:17 -05:00
parent 5b70074edf
commit 87f7c83fff
1 changed files with 2 additions and 0 deletions

View File

@ -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)