LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
vcl::TrueTypeTableName Class Reference

Creates a new 'name' table. More...

#include <ttcr.hxx>

Inheritance diagram for vcl::TrueTypeTableName:
Collaboration diagram for vcl::TrueTypeTableName:

Public Member Functions

 TrueTypeTableName (std::vector< NameRecord > nr)
virtual ~TrueTypeTableName () override
virtual int GetRawData (TableEntry *) override
 This function converts the data of a TrueType table to a raw array of bytes. More...
- Public Member Functions inherited from vcl::TrueTypeTable
virtual ~TrueTypeTable ()
virtual int GetRawData (TableEntry *)=0
 This function converts the data of a TrueType table to a raw array of bytes. More...

Private Attributes

std::vector< NameRecordm_list

Additional Inherited Members

- Public Attributes inherited from vcl::TrueTypeTable
sal_uInt32 m_tag = 0
std::unique_ptr< sal_uInt8[]> m_rawdata
- Protected Member Functions inherited from vcl::TrueTypeTable
 TrueTypeTable (sal_uInt32 tag_)

Detailed Description

Creates a new 'name' table.

If n != 0 the table gets populated by the Name Records stored in the nr array. This function allocates memory for its own copy of NameRecords, so nr array has to be explicitly deallocated when it is not needed.

Definition at line 261 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableName()

vcl::TrueTypeTableName::TrueTypeTableName ( std::vector< NameRecord nr)

Definition at line 730 of file ttcr.cxx.

◆ ~TrueTypeTableName()

vcl::TrueTypeTableName::~TrueTypeTableName ( )

Definition at line 306 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTableName::GetRawData ( TableEntry )

This function converts the data of a TrueType table to a raw array of bytes.

It may allocates the memory for it and returns the size of the raw data in bytes. If memory is allocated it does not need to be freed by the caller of this function, since the pointer to it is stored in the TrueTypeTable and it is freed by the destructor


Implements vcl::TrueTypeTable.

Definition at line 514 of file ttcr.cxx.

References vcl::TableEntry::data, i, vcl::TableEntry::length, m_list, vcl::TrueTypeTable::m_rawdata, n, name, vcl::PutUInt16(), vcl::T_name, vcl::TableEntry::tag, vcl::TTCR_NAMETOOLONG, vcl::TTCR_NONAMES, vcl::TTCR_OK, and vcl::ttmalloc().

Member Data Documentation

◆ m_list

std::vector<NameRecord> vcl::TrueTypeTableName::m_list

Definition at line 268 of file ttcr.hxx.

Referenced by GetRawData().

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