[serializer] Add operator <<
Not sure if we are going to use it. But might incentivize us to.
This commit is contained in:
parent
5b70074edf
commit
87f7c83fff
|
@ -599,6 +599,8 @@ struct hb_serialize_context_t
|
||||||
memcpy (ret, &obj, size);
|
memcpy (ret, &obj, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
template <typename Type>
|
||||||
|
hb_serialize_context_t &operator << (const Type &obj) { embed (obj); return *this; }
|
||||||
|
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
Type *extend_size (Type &obj, unsigned int size)
|
Type *extend_size (Type &obj, unsigned int size)
|
||||||
|
|
Loading…
Reference in New Issue