[cff-common] Inline once-used method in INDEX
This commit is contained in:
parent
11482a3a39
commit
c9cc7d5d21
|
@ -84,11 +84,8 @@ struct str_buff_vec_t : hb_vector_t<str_buff_t>
|
||||||
template <typename COUNT>
|
template <typename COUNT>
|
||||||
struct CFFIndex
|
struct CFFIndex
|
||||||
{
|
{
|
||||||
static unsigned int calculate_offset_array_size (unsigned int offSize, unsigned int count)
|
|
||||||
{ return offSize * (count + 1); }
|
|
||||||
|
|
||||||
unsigned int offset_array_size () const
|
unsigned int offset_array_size () const
|
||||||
{ return calculate_offset_array_size (offSize, count); }
|
{ return offSize * (count + 1); }
|
||||||
|
|
||||||
CFFIndex *copy (hb_serialize_context_t *c) const
|
CFFIndex *copy (hb_serialize_context_t *c) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue