[cff-common] Write str_buf_t::total_size() as dagger
This commit is contained in:
parent
258afb45b7
commit
60390169b6
|
@ -57,14 +57,11 @@ struct str_buff_vec_t : hb_vector_t<str_buff_t>
|
||||||
{
|
{
|
||||||
unsigned int total_size () const
|
unsigned int total_size () const
|
||||||
{
|
{
|
||||||
unsigned int size = 0;
|
return + this->iter ()
|
||||||
for (const auto& v : *this )
|
| hb_map (&str_buff_t::length)
|
||||||
size += v.length;
|
| hb_reduce (hb_add, 0)
|
||||||
return size;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
typedef hb_vector_t<str_buff_t> SUPER;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* CFF INDEX */
|
/* CFF INDEX */
|
||||||
|
|
Loading…
Reference in New Issue