From c514f65181390ab98b0f738632f71cda31e46b68 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Nov 2018 16:04:56 -0500 Subject: [PATCH] [arrays] Add as_array() to ArrayOf<> --- src/hb-open-type.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index f4a9a5e87..17bc9c5b4 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -479,6 +479,9 @@ struct ArrayOf inline unsigned int get_size (void) const { return len.static_size + len * Type::static_size; } + inline hb_array_t as_array (void) { return hb_array_t (arrayZ, len); } + inline hb_array_t as_array (void) const { return hb_array_t (arrayZ, len); } + inline bool serialize (hb_serialize_context_t *c, unsigned int items_len) {