Flutter Engine
minikin::HbBlob Class Reference

#include <MinikinInternal.h>

Public Member Functions

 HbBlob (hb_blob_t *blob)
 
 ~HbBlob ()
 
const uint8_t * get () const
 
size_t size () const
 

Detailed Description

Definition at line 44 of file MinikinInternal.h.

Constructor & Destructor Documentation

◆ HbBlob()

minikin::HbBlob::HbBlob ( hb_blob_t *  blob)
inlineexplicit

Definition at line 48 of file MinikinInternal.h.

48 : mBlob(blob) {}

◆ ~HbBlob()

minikin::HbBlob::~HbBlob ( )
inline

Definition at line 50 of file MinikinInternal.h.

50 { hb_blob_destroy(mBlob); }

Member Function Documentation

◆ get()

const uint8_t* minikin::HbBlob::get ( ) const
inline

Definition at line 52 of file MinikinInternal.h.

52  {
53  const char* data = hb_blob_get_data(mBlob, nullptr);
54  return reinterpret_cast<const uint8_t*>(data);
55  }

◆ size()

size_t minikin::HbBlob::size ( ) const
inline

Definition at line 57 of file MinikinInternal.h.

57 { return (size_t)hb_blob_get_length(mBlob); }

The documentation for this class was generated from the following file: