Coverage Report

Created: 2023-05-11 17:16

/src/harfbuzz/src/hb-blob.hh
Line
Count
Source
1
/*
2
 * Copyright © 2009  Red Hat, Inc.
3
 * Copyright © 2018  Google, Inc.
4
 *
5
 *  This is part of HarfBuzz, a text shaping library.
6
 *
7
 * Permission is hereby granted, without written agreement and without
8
 * license or royalty fees, to use, copy, modify, and distribute this
9
 * software and its documentation for any purpose, provided that the
10
 * above copyright notice and the following two paragraphs appear in
11
 * all copies of this software.
12
 *
13
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
14
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
15
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
16
 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
17
 * DAMAGE.
18
 *
19
 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
20
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21
 * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
22
 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
23
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
24
 *
25
 * Red Hat Author(s): Behdad Esfahbod
26
 * Google Author(s): Behdad Esfahbod
27
 */
28
29
#ifndef HB_BLOB_HH
30
#define HB_BLOB_HH
31
32
#include "hb.hh"
33
34
35
/*
36
 * hb_blob_t
37
 */
38
39
struct hb_blob_t
40
{
41
2.32M
  ~hb_blob_t () { destroy_user_data (); }
42
43
  void destroy_user_data ()
44
2.55M
  {
45
2.55M
    if (destroy)
46
2.23M
    {
47
2.23M
      destroy (user_data);
48
2.23M
      user_data = nullptr;
49
2.23M
      destroy = nullptr;
50
2.23M
    }
51
2.55M
  }
52
53
  HB_INTERNAL bool try_make_writable ();
54
  HB_INTERNAL bool try_make_writable_inplace ();
55
  HB_INTERNAL bool try_make_writable_inplace_unix ();
56
57
468M
  hb_bytes_t as_bytes () const { return hb_bytes_t (data, length); }
58
  template <typename Type>
59
468M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::GDEF const* hb_blob_t::as<OT::GDEF>() const
Line
Count
Source
59
14.7M
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::ltag const* hb_blob_t::as<AAT::ltag>() const
Line
Count
Source
59
10.6M
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::morx const* hb_blob_t::as<AAT::morx>() const
Line
Count
Source
59
712k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::mort const* hb_blob_t::as<AAT::mort>() const
Line
Count
Source
59
549k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::kerx const* hb_blob_t::as<AAT::kerx>() const
Line
Count
Source
59
582k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::ankr const* hb_blob_t::as<AAT::ankr>() const
Line
Count
Source
59
89.2k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::trak const* hb_blob_t::as<AAT::trak>() const
Line
Count
Source
59
494k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::feat const* hb_blob_t::as<AAT::feat>() const
Line
Count
Source
59
980k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::Layout::GPOS const* hb_blob_t::as<OT::Layout::GPOS>() const
Line
Count
Source
59
82.9M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::maxp const* hb_blob_t::as<OT::maxp>() const
Line
Count
Source
59
965k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::head const* hb_blob_t::as<OT::head>() const
Line
Count
Source
59
971k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cmap const* hb_blob_t::as<OT::cmap>() const
Line
Count
Source
59
645k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::OS2 const* hb_blob_t::as<OT::OS2>() const
Line
Count
Source
59
1.60M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::hhea const* hb_blob_t::as<OT::hhea>() const
Line
Count
Source
59
2.22M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::vhea const* hb_blob_t::as<OT::vhea>() const
Line
Count
Source
59
319k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::gvar const* hb_blob_t::as<OT::gvar>() const
Line
Count
Source
59
1.12M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> const* hb_blob_t::as<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >() const
Line
Count
Source
59
18.4M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> const* hb_blob_t::as<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >() const
Line
Count
Source
59
13.8k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::loca const* hb_blob_t::as<OT::loca>() const
Line
Count
Source
59
791k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::glyf const* hb_blob_t::as<OT::glyf>() const
Line
Count
Source
59
422k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::OpenTypeFontFile const* hb_blob_t::as<OT::OpenTypeFontFile>() const
Line
Count
Source
59
12.5M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::fvar const* hb_blob_t::as<OT::fvar>() const
Line
Count
Source
59
1.98M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::avar const* hb_blob_t::as<OT::avar>() const
Line
Count
Source
59
976k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::SVG const* hb_blob_t::as<OT::SVG>() const
Line
Count
Source
59
980k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::sbix const* hb_blob_t::as<OT::sbix>() const
Line
Count
Source
59
1.67M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CBLC const* hb_blob_t::as<OT::CBLC>() const
Line
Count
Source
59
865k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CBDT const* hb_blob_t::as<OT::CBDT>() const
Line
Count
Source
59
321
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CPAL const* hb_blob_t::as<OT::CPAL>() const
Line
Count
Source
59
1.96M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::COLR const* hb_blob_t::as<OT::COLR>() const
Line
Count
Source
59
653k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::sbix::accelerator_t::PNGHeader const* hb_blob_t::as<OT::sbix::accelerator_t::PNGHeader>() const
Line
Count
Source
59
5.24k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cff1 const* hb_blob_t::as<OT::cff1>() const
Line
Count
Source
59
318k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cff2 const* hb_blob_t::as<OT::cff2>() const
Line
Count
Source
59
291k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::meta const* hb_blob_t::as<OT::meta>() const
Line
Count
Source
59
653k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::name const* hb_blob_t::as<OT::name>() const
Line
Count
Source
59
2.02M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::post const* hb_blob_t::as<OT::post>() const
Line
Count
Source
59
399k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::Layout::GSUB const* hb_blob_t::as<OT::Layout::GSUB>() const
Line
Count
Source
59
271M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::HVAR const* hb_blob_t::as<OT::HVAR>() const
Line
Count
Source
59
6.57M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::VVAR const* hb_blob_t::as<OT::VVAR>() const
Line
Count
Source
59
3.20k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::VORG const* hb_blob_t::as<OT::VORG>() const
Line
Count
Source
59
323k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::kern const* hb_blob_t::as<OT::kern>() const
Line
Count
Source
59
592k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::BASE const* hb_blob_t::as<OT::BASE>() const
Line
Count
Source
59
326k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::MATH const* hb_blob_t::as<OT::MATH>() const
Line
Count
Source
59
22.8M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::MVAR const* hb_blob_t::as<OT::MVAR>() const
Line
Count
Source
59
1.65M
  const Type* as () const { return as_bytes ().as<Type> (); }
60
61
  public:
62
  hb_object_header_t header;
63
64
  const char *data = nullptr;
65
  unsigned int length = 0;
66
  hb_memory_mode_t mode = (hb_memory_mode_t) 0;
67
68
  void *user_data = nullptr;
69
  hb_destroy_func_t destroy = nullptr;
70
};
71
72
73
/*
74
 * hb_blob_ptr_t
75
 */
76
77
template <typename P>
78
struct hb_blob_ptr_t
79
{
80
  typedef hb_remove_pointer<P> T;
81
82
5.77M
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::GDEF>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
321k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::cmap>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
322k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::SVG>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
322k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::CBLC>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
321k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::CBDT>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
321k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::sbix>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
321k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
320k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::HVAR>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
320k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
319k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::VVAR>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
319k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::post>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
319k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::loca>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
319k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::glyf>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
319k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::gvar>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
313k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::Layout::GSUB>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
322k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::Layout::GPOS>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
322k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::meta>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
322k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
hb_blob_ptr_t<OT::name>::hb_blob_ptr_t(hb_blob_t*)
Line
Count
Source
82
321k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
83
6.41M
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::GDEF>::operator=(hb_blob_t*)
Line
Count
Source
83
321k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::Layout::GPOS>::operator=(hb_blob_t*)
Line
Count
Source
83
325k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::cmap>::operator=(hb_blob_t*)
Line
Count
Source
83
322k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::operator=(hb_blob_t*)
Line
Count
Source
83
320k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::HVAR>::operator=(hb_blob_t*)
Line
Count
Source
83
320k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::operator=(hb_blob_t*)
Line
Count
Source
83
319k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::VVAR>::operator=(hb_blob_t*)
Line
Count
Source
83
319k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::gvar>::operator=(hb_blob_t*)
Line
Count
Source
83
313k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::loca>::operator=(hb_blob_t*)
Line
Count
Source
83
635k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::glyf>::operator=(hb_blob_t*)
Line
Count
Source
83
635k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::SVG>::operator=(hb_blob_t*)
Line
Count
Source
83
322k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::CBLC>::operator=(hb_blob_t*)
Line
Count
Source
83
321k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::CBDT>::operator=(hb_blob_t*)
Line
Count
Source
83
321k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::sbix>::operator=(hb_blob_t*)
Line
Count
Source
83
321k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::operator=(hb_blob_t*)
hb_blob_ptr_t<OT::meta>::operator=(hb_blob_t*)
Line
Count
Source
83
322k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::name>::operator=(hb_blob_t*)
Line
Count
Source
83
321k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::post>::operator=(hb_blob_t*)
Line
Count
Source
83
319k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::Layout::GSUB>::operator=(hb_blob_t*)
Line
Count
Source
83
325k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
84
325M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::GDEF>::operator->() const
Line
Count
Source
84
1.46M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::Layout::GPOS>::operator->() const
Line
Count
Source
84
56.6M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::cmap>::operator->() const
Line
Count
Source
84
645k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::gvar>::operator->() const
Line
Count
Source
84
1.02M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::operator->() const
Line
Count
Source
84
18.4M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::operator->() const
Line
Count
Source
84
13.8k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::loca>::operator->() const
Line
Count
Source
84
791k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::SVG>::operator->() const
Line
Count
Source
84
980k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::sbix>::operator->() const
Line
Count
Source
84
1.67M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::CBLC>::operator->() const
Line
Count
Source
84
432k
  const T * operator -> () const { return get (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::operator->() const
hb_blob_ptr_t<OT::meta>::operator->() const
Line
Count
Source
84
653k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::name>::operator->() const
Line
Count
Source
84
1.70M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::post>::operator->() const
Line
Count
Source
84
359k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::Layout::GSUB>::operator->() const
Line
Count
Source
84
240M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::HVAR>::operator->() const
Line
Count
Source
84
15.5k
  const T * operator -> () const { return get (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::VVAR>::operator->() const
85
76.7M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::GDEF>::operator*() const
Line
Count
Source
85
12.8M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::HVAR>::operator*() const
Line
Count
Source
85
6.55M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::VVAR>::operator*() const
Line
Count
Source
85
3.20k
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::Layout::GSUB>::operator*() const
Line
Count
Source
85
31.0M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::Layout::GPOS>::operator*() const
Line
Count
Source
85
26.3M
  const T & operator * () const  { return *get (); }
86
1.30M
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::GDEF>::operator OT::GDEF const*<OT::GDEF>() const
Line
Count
Source
86
408k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::gvar>::operator void const*<void>() const
Line
Count
Source
86
99.9k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::CBLC>::operator void const*<void>() const
Line
Count
Source
86
432k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::CBDT>::operator void const*<void>() const
Line
Count
Source
86
321
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::name>::operator void const*<void>() const
Line
Count
Source
86
321k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::post>::operator void const*<void>() const
Line
Count
Source
86
40.1k
  template <typename C> operator const C * () const { return get (); }
87
422k
  operator const char * () const { return (const char *) get (); }
88
403M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::GDEF>::get() const
Line
Count
Source
88
14.7M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::Layout::GPOS>::get() const
Line
Count
Source
88
82.9M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::cmap>::get() const
Line
Count
Source
88
645k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::gvar>::get() const
Line
Count
Source
88
1.12M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::get() const
Line
Count
Source
88
18.4M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::get() const
Line
Count
Source
88
13.8k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::loca>::get() const
Line
Count
Source
88
791k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::glyf>::get() const
Line
Count
Source
88
422k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::SVG>::get() const
Line
Count
Source
88
980k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::sbix>::get() const
Line
Count
Source
88
1.67M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::CBLC>::get() const
Line
Count
Source
88
865k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::CBDT>::get() const
Line
Count
Source
88
321
  const T * get () const { return b->as<T> (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::get() const
hb_blob_ptr_t<OT::meta>::get() const
Line
Count
Source
88
653k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::name>::get() const
Line
Count
Source
88
2.02M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::post>::get() const
Line
Count
Source
88
399k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::Layout::GSUB>::get() const
Line
Count
Source
88
271M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::HVAR>::get() const
Line
Count
Source
88
6.57M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::VVAR>::get() const
Line
Count
Source
88
3.20k
  const T * get () const { return b->as<T> (); }
89
1.83M
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::GDEF>::get_blob() const
Line
Count
Source
89
321k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::Layout::GPOS>::get_blob() const
Line
Count
Source
89
322k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::gvar>::get_blob() const
Line
Count
Source
89
205k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::SVG>::get_blob() const
Line
Count
Source
89
326k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::sbix>::get_blob() const
Line
Count
Source
89
7.22k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::CBDT>::get_blob() const
Line
Count
Source
89
31
  hb_blob_t * get_blob () const { return b.get_raw (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::get_blob() const
hb_blob_ptr_t<OT::meta>::get_blob() const
Line
Count
Source
89
326k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::Layout::GSUB>::get_blob() const
Line
Count
Source
89
322k
  hb_blob_t * get_blob () const { return b.get_raw (); }
90
3.96M
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::get_length() const
Line
Count
Source
90
320k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::get_length() const
Line
Count
Source
90
319k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::loca>::get_length() const
Line
Count
Source
90
316k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::glyf>::get_length() const
Line
Count
Source
90
595k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::CBDT>::get_length() const
Line
Count
Source
90
654k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::name>::get_length() const
Line
Count
Source
90
643k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::post>::get_length() const
Line
Count
Source
90
319k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::HVAR>::get_length() const
Line
Count
Source
90
157k
  unsigned int get_length () const { return b.get ()->length; }
Unexecuted instantiation: hb_blob_ptr_t<OT::VVAR>::get_length() const
hb_blob_ptr_t<OT::Layout::GSUB>::get_length() const
Line
Count
Source
90
321k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::Layout::GPOS>::get_length() const
Line
Count
Source
90
321k
  unsigned int get_length () const { return b.get ()->length; }
91
5.41M
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::GDEF>::destroy()
Line
Count
Source
91
318k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::Layout::GPOS>::destroy()
Line
Count
Source
91
322k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::cmap>::destroy()
Line
Count
Source
91
320k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::destroy()
Line
Count
Source
91
317k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::HVAR>::destroy()
Line
Count
Source
91
317k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::destroy()
Line
Count
Source
91
316k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::VVAR>::destroy()
Line
Count
Source
91
316k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::gvar>::destroy()
Line
Count
Source
91
310k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::glyf>::destroy()
Line
Count
Source
91
316k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::SVG>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::CBLC>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::CBDT>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::sbix>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::destroy()
hb_blob_ptr_t<OT::post>::destroy()
Line
Count
Source
91
316k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::name>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::meta>::destroy()
Line
Count
Source
91
319k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::Layout::GSUB>::destroy()
Line
Count
Source
91
322k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
92
93
  private:
94
  hb_nonnull_ptr_t<hb_blob_t> b;
95
};
96
97
98
#endif /* HB_BLOB_HH */