class final readonly Optional · pdftoolkit/pdf-fonts 0.1.7

PDF\Fonts\TrueType\BinaryReader
Bounded, big-endian access to an immutable sfnt table or font program.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(string $bytes, int $origin = 0, ?int $length = null)

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

Declared methods

int16()

public function int16(int $offset): int

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

int32()

public function int32(int $offset): int

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

length()

public function length(): int

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

slice()

public function slice(int $offset, int $length): string

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

uint16()

public function uint16(int $offset): int

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

uint32()

public function uint32(int $offset): int

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗

view()

public function view(int $offset, int $length): self
A zero-copy immutable view, bounded by this reader rather than the source.

Declared by PDF\Fonts\TrueType\BinaryReader · View the code ↗