commit | f08537963b5157cd9e7a02f6e1695ff6bd27cc1b | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed May 11 12:10:03 2022 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed May 11 12:14:49 2022 -0600 |
tree | ba28b69c8feca2a2552b9d93ac759404282622e0 | |
parent | 7edd54f3ddadc10307577575f47e943b86198e9d [diff] [blame] |
[cff-subset] Pre-alloc vector for operator decoding
diff --git a/src/hb-cff-interp-common.hh b/src/hb-cff-interp-common.hh index 058dc0c..1cd1656 100644 --- a/src/hb-cff-interp-common.hh +++ b/src/hb-cff-interp-common.hh
@@ -520,6 +520,11 @@ } void fini () { values.fini (); } + void alloc (unsigned n) + { + values.alloc (n); + } + void add_op (op_code_t op, const byte_str_ref_t& str_ref = byte_str_ref_t ()) { VAL *val = values.push ();