Add ArrayOf::serialize_append
This commit is contained in:
parent
b66076812d
commit
062cad5e28
|
@ -606,6 +606,18 @@ struct ArrayOf
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Type* serialize_append (hb_serialize_context_t *c)
|
||||||
|
{
|
||||||
|
TRACE_SERIALIZE (this);
|
||||||
|
len++;
|
||||||
|
if (unlikely (!len || !c->extend (*this)))
|
||||||
|
{
|
||||||
|
len--;
|
||||||
|
return_trace (nullptr);
|
||||||
|
}
|
||||||
|
return_trace (&arrayZ[len - 1]);
|
||||||
|
}
|
||||||
|
|
||||||
ArrayOf* copy (hb_serialize_context_t *c) const
|
ArrayOf* copy (hb_serialize_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
|
|
Loading…
Reference in New Issue