chain second OffsetTo::serialize_copy() to first
This commit is contained in:
parent
6120f50c8f
commit
4aa354beba
|
@ -362,25 +362,11 @@ struct OffsetTo : Offset<OffsetType, has_null>
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename ...Ts>
|
|
||||||
bool serialize_copy (hb_serialize_context_t *c,
|
bool serialize_copy (hb_serialize_context_t *c,
|
||||||
const OffsetTo& src,
|
const OffsetTo& src,
|
||||||
const void *src_base,
|
const void *src_base,
|
||||||
const void *dst_base,
|
const void *dst_base)
|
||||||
Ts&&... ds)
|
{ return serialize_copy (c, src, src_base, dst_base, hb_serialize_context_t::Head); }
|
||||||
{
|
|
||||||
*this = 0;
|
|
||||||
if (src.is_null ())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
c->push ();
|
|
||||||
|
|
||||||
bool ret = c->copy (src_base+src, hb_forward<Ts> (ds)...);
|
|
||||||
|
|
||||||
c->add_link (*this, c->pop_pack (), dst_base);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool sanitize_shallow (hb_sanitize_context_t *c, const void *base) const
|
bool sanitize_shallow (hb_sanitize_context_t *c, const void *base) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue