setasign\SetaPDF2\Core\Font\TrueType\Table

Record <T of AbstractTable> A record in a TrueType file

File: /SetaPDF v2/Core/Font/TrueType/Table/Record.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_Record

Class hierarchy

Summary

Properties

$_className

protected ?class-string<T> Record::$_className

The class name representing this type of table

$_file

$_length

protected ?int Record::$_length

The length of the table

$_offset

protected int Record::$_offset

The offset of the table

$_table

The table instance


Methods

__construct()

public Record::__construct (
\setasign\SetaPDF2\Core\Font\TrueType\File $file,
int $offset,
?int $length = null,
?class-string<T> $className = null
)

The constructor.

Parameters
$file: \setasign\SetaPDF2\Core\Font\TrueType\File
 
$offset: int
 
$length: ?int
 
$className: ?class-string<T>
 

cleanUp()

public Record::cleanUp (
void
): void

Release memory and cycled references.

getClassName()

public Record::getClassName (
void
): ?class-string<T>

Get the class name for this type of table.

getFile()

Get the TrueType file.

getLength()

public Record::getLength (
void
): ?int

Get the length of the table.

getOffset()

public Record::getOffset (
void
): int

Get the table offset.

getTable()

public Record::getTable (
void
): AbstractTable|T

Get the table instance for this record.

Exceptions

Throws \setasign\SetaPDF2\NotImplementedException