diff --git a/src/hb-blob-private.hh b/src/hb-blob-private.hh index 49ad68ece..0d3fad574 100644 --- a/src/hb-blob-private.hh +++ b/src/hb-blob-private.hh @@ -62,6 +62,10 @@ struct hb_blob_t { return unlikely (!data) ? &Null(Type) : reinterpret_cast (data); } + inline hb_bytes_t as_bytes (void) const + { + return hb_bytes_t (data, length); + } public: hb_object_header_t header;