提交 8855af38 编写于 作者: B Behdad Esfahbod

[name] Add NameRecord::copy()

上级 097bb3f0
......@@ -95,6 +95,16 @@ struct NameRecord
return UNSUPPORTED;
}
NameRecord* copy (hb_serialize_context_t *c,
const void *src_base,
const void *dst_base) const
{
auto *out = c->embed (this);
out->offset = 0;
out->offset.serialize_copy (c, src_base + offset, dst_base, length);
return out;
}
bool sanitize (hb_sanitize_context_t *c, const void *base) const
{
TRACE_SANITIZE (this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册