diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 7056a5b54..c1f680ed8 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -89,6 +89,9 @@ struct hb_vector_t return arrayZ()[i]; } + 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); } + template inline operator T * (void) { return arrayZ(); } template inline operator const T * (void) const { return arrayZ(); }