From: Behdad Esfahbod Date: Fri, 24 Aug 2018 17:29:45 +0000 (-0700) Subject: [blob] Add as_bytes() X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cac9dc9ccb76945e9dfacafc169afad4a6e1e88;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [blob] Add as_bytes() --- diff --git a/src/hb-blob-private.hh b/src/hb-blob-private.hh index 49ad68e..0d3fad5 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;