Coverage Report

Created: 2023-10-07 03:37

/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.21M
  ~hb_blob_t () { destroy_user_data (); }
42
43
  void destroy_user_data ()
44
2.42M
  {
45
2.42M
    if (destroy)
46
1.89M
    {
47
1.89M
      destroy (user_data);
48
1.89M
      user_data = nullptr;
49
1.89M
      destroy = nullptr;
50
1.89M
    }
51
2.42M
  }
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
295M
  hb_bytes_t as_bytes () const { return hb_bytes_t (data, length); }
58
  template <typename Type>
59
295M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::GDEF const* hb_blob_t::as<OT::GDEF>() const
Line
Count
Source
59
24.7M
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::ltag const* hb_blob_t::as<AAT::ltag>() const
Line
Count
Source
59
6.23M
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::morx const* hb_blob_t::as<AAT::morx>() const
Line
Count
Source
59
936k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::mort const* hb_blob_t::as<AAT::mort>() const
Line
Count
Source
59
700k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::kerx const* hb_blob_t::as<AAT::kerx>() const
Line
Count
Source
59
735k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::ankr const* hb_blob_t::as<AAT::ankr>() const
Line
Count
Source
59
73.6k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::trak const* hb_blob_t::as<AAT::trak>() const
Line
Count
Source
59
664k
  const Type* as () const { return as_bytes ().as<Type> (); }
AAT::feat const* hb_blob_t::as<AAT::feat>() const
Line
Count
Source
59
1.57M
  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
45.1M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::maxp const* hb_blob_t::as<OT::maxp>() const
Line
Count
Source
59
1.56M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::head const* hb_blob_t::as<OT::head>() const
Line
Count
Source
59
1.56M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::MVAR const* hb_blob_t::as<OT::MVAR>() const
Line
Count
Source
59
2.14M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cmap const* hb_blob_t::as<OT::cmap>() const
Line
Count
Source
59
1.04M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::OS2 const* hb_blob_t::as<OT::OS2>() const
Line
Count
Source
59
2.24M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::COLR const* hb_blob_t::as<OT::COLR>() const
Line
Count
Source
59
1.82M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::hhea const* hb_blob_t::as<OT::hhea>() const
Line
Count
Source
59
2.74M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::vhea const* hb_blob_t::as<OT::vhea>() const
Line
Count
Source
59
518k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::gvar const* hb_blob_t::as<OT::gvar>() const
Line
Count
Source
59
2.22M
  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
14.7M
  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
25.7k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::loca const* hb_blob_t::as<OT::loca>() const
Line
Count
Source
59
986k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::glyf const* hb_blob_t::as<OT::glyf>() const
Line
Count
Source
59
802k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::OpenTypeFontFile const* hb_blob_t::as<OT::OpenTypeFontFile>() const
Line
Count
Source
59
20.2M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::fvar const* hb_blob_t::as<OT::fvar>() const
Line
Count
Source
59
3.16M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::avar const* hb_blob_t::as<OT::avar>() const
Line
Count
Source
59
1.56M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::SVG const* hb_blob_t::as<OT::SVG>() const
Line
Count
Source
59
1.57M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::sbix const* hb_blob_t::as<OT::sbix>() const
Line
Count
Source
59
1.89M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CBLC const* hb_blob_t::as<OT::CBLC>() const
Line
Count
Source
59
1.55M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CBDT const* hb_blob_t::as<OT::CBDT>() const
Line
Count
Source
59
614
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::CPAL const* hb_blob_t::as<OT::CPAL>() const
Line
Count
Source
59
3.42M
  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
3.80k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cff1 const* hb_blob_t::as<OT::cff1>() const
Line
Count
Source
59
517k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::cff2 const* hb_blob_t::as<OT::cff2>() const
Line
Count
Source
59
495k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::meta const* hb_blob_t::as<OT::meta>() const
Line
Count
Source
59
1.04M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::name const* hb_blob_t::as<OT::name>() const
Line
Count
Source
59
3.20M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::post const* hb_blob_t::as<OT::post>() const
Line
Count
Source
59
560k
  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
91.8M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::HVAR const* hb_blob_t::as<OT::HVAR>() const
Line
Count
Source
59
12.3M
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::VVAR const* hb_blob_t::as<OT::VVAR>() const
Line
Count
Source
59
4.81k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::VORG const* hb_blob_t::as<OT::VORG>() const
Line
Count
Source
59
520k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::kern const* hb_blob_t::as<OT::kern>() const
Line
Count
Source
59
717k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::BASE const* hb_blob_t::as<OT::BASE>() const
Line
Count
Source
59
523k
  const Type* as () const { return as_bytes ().as<Type> (); }
OT::MATH const* hb_blob_t::as<OT::MATH>() const
Line
Count
Source
59
36.6M
  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
9.35M
  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
521k
  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
521k
  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
521k
  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
521k
  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
521k
  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
521k
  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
518k
  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
518k
  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
518k
  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
518k
  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
517k
  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
518k
  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
518k
  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
511k
  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
521k
  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
521k
  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
521k
  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
521k
  hb_blob_ptr_t (hb_blob_t *b_ = nullptr) : b (b_) {}
83
10.3M
  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
521k
  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
523k
  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
521k
  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::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::operator=(hb_blob_t*)
Line
Count
Source
83
518k
  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
518k
  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
518k
  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
518k
  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
511k
  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
1.03M
  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
1.03M
  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
521k
  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
521k
  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
521k
  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
521k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
hb_blob_ptr_t<OT::meta>::operator=(hb_blob_t*)
Line
Count
Source
83
521k
  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
521k
  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
517k
  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
522k
  hb_blob_t * operator = (hb_blob_t *b_) { return b = b_; }
84
83.5M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::GDEF>::operator->() const
Line
Count
Source
84
2.22M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::Layout::GPOS>::operator->() const
Line
Count
Source
84
8.95M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::cmap>::operator->() const
Line
Count
Source
84
1.04M
  const T * operator -> () const { return get (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::operator->() const
hb_blob_ptr_t<OT::gvar>::operator->() const
Line
Count
Source
84
2.05M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::operator->() const
Line
Count
Source
84
14.7M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::hmtxvmtx<OT::vmtx, OT::vhea, OT::VVAR> >::operator->() const
Line
Count
Source
84
25.7k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::loca>::operator->() const
Line
Count
Source
84
986k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::SVG>::operator->() const
Line
Count
Source
84
1.57M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::sbix>::operator->() const
Line
Count
Source
84
1.89M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::CBLC>::operator->() const
Line
Count
Source
84
776k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::meta>::operator->() const
Line
Count
Source
84
1.04M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::name>::operator->() const
Line
Count
Source
84
2.68M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::post>::operator->() const
Line
Count
Source
84
539k
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::Layout::GSUB>::operator->() const
Line
Count
Source
84
44.9M
  const T * operator -> () const { return get (); }
hb_blob_ptr_t<OT::HVAR>::operator->() const
Line
Count
Source
84
15.6k
  const T * operator -> () const { return get (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::VVAR>::operator->() const
85
117M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::GDEF>::operator*() const
Line
Count
Source
85
22.2M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::HVAR>::operator*() const
Line
Count
Source
85
12.3M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::VVAR>::operator*() const
Line
Count
Source
85
4.81k
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::Layout::GSUB>::operator*() const
Line
Count
Source
85
46.8M
  const T & operator * () const  { return *get (); }
hb_blob_ptr_t<OT::Layout::GPOS>::operator*() const
Line
Count
Source
85
36.2M
  const T & operator * () const  { return *get (); }
86
1.78M
  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
290k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::gvar>::operator void const*<void>() const
Line
Count
Source
86
170k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::CBLC>::operator void const*<void>() const
Line
Count
Source
86
776k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::CBDT>::operator void const*<void>() const
Line
Count
Source
86
614
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::name>::operator void const*<void>() const
Line
Count
Source
86
521k
  template <typename C> operator const C * () const { return get (); }
hb_blob_ptr_t<OT::post>::operator void const*<void>() const
Line
Count
Source
86
21.4k
  template <typename C> operator const C * () const { return get (); }
87
802k
  operator const char * () const { return (const char *) get (); }
88
203M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::GDEF>::get() const
Line
Count
Source
88
24.7M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::Layout::GPOS>::get() const
Line
Count
Source
88
45.1M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::cmap>::get() const
Line
Count
Source
88
1.04M
  const T * get () const { return b->as<T> (); }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::get() const
hb_blob_ptr_t<OT::gvar>::get() const
Line
Count
Source
88
2.22M
  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
14.7M
  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
25.7k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::loca>::get() const
Line
Count
Source
88
986k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::glyf>::get() const
Line
Count
Source
88
802k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::SVG>::get() const
Line
Count
Source
88
1.57M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::sbix>::get() const
Line
Count
Source
88
1.89M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::CBLC>::get() const
Line
Count
Source
88
1.55M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::CBDT>::get() const
Line
Count
Source
88
614
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::meta>::get() const
Line
Count
Source
88
1.04M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::name>::get() const
Line
Count
Source
88
3.20M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::post>::get() const
Line
Count
Source
88
560k
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::Layout::GSUB>::get() const
Line
Count
Source
88
91.8M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::HVAR>::get() const
Line
Count
Source
88
12.3M
  const T * get () const { return b->as<T> (); }
hb_blob_ptr_t<OT::VVAR>::get() const
Line
Count
Source
88
4.81k
  const T * get () const { return b->as<T> (); }
89
2.93M
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::GDEF>::get_blob() const
Line
Count
Source
89
521k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::Layout::GPOS>::get_blob() const
Line
Count
Source
89
521k
  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::gvar>::get_blob() const
Line
Count
Source
89
315k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::SVG>::get_blob() const
Line
Count
Source
89
523k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::sbix>::get_blob() const
Line
Count
Source
89
5.09k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::CBDT>::get_blob() const
Line
Count
Source
89
57
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::meta>::get_blob() const
Line
Count
Source
89
523k
  hb_blob_t * get_blob () const { return b.get_raw (); }
hb_blob_ptr_t<OT::Layout::GSUB>::get_blob() const
Line
Count
Source
89
521k
  hb_blob_t * get_blob () const { return b.get_raw (); }
90
6.24M
  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
518k
  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
518k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::loca>::get_length() const
Line
Count
Source
90
513k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::glyf>::get_length() const
Line
Count
Source
90
853k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::CBDT>::get_length() const
Line
Count
Source
90
1.04M
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::name>::get_length() const
Line
Count
Source
90
1.04M
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::post>::get_length() const
Line
Count
Source
90
517k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::HVAR>::get_length() const
Line
Count
Source
90
189k
  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
521k
  unsigned int get_length () const { return b.get ()->length; }
hb_blob_ptr_t<OT::Layout::GPOS>::get_length() const
Line
Count
Source
90
521k
  unsigned int get_length () const { return b.get ()->length; }
91
8.83M
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::GDEF>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::Layout::GPOS>::destroy()
Line
Count
Source
91
523k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::cmap>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
Unexecuted instantiation: hb_blob_ptr_t<OT::COLR>::destroy()
hb_blob_ptr_t<OT::hmtxvmtx<OT::hmtx, OT::hhea, OT::HVAR> >::destroy()
Line
Count
Source
91
518k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::HVAR>::destroy()
Line
Count
Source
91
518k
  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
518k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::VVAR>::destroy()
Line
Count
Source
91
518k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::gvar>::destroy()
Line
Count
Source
91
511k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::glyf>::destroy()
Line
Count
Source
91
518k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::SVG>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::CBLC>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::CBDT>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::sbix>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::post>::destroy()
Line
Count
Source
91
517k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::name>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::meta>::destroy()
Line
Count
Source
91
521k
  void destroy () { hb_blob_destroy (b.get_raw ()); b = nullptr; }
hb_blob_ptr_t<OT::Layout::GSUB>::destroy()
Line
Count
Source
91
522k
  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 */