class final Optional · pdftoolkit/pdf-reader 0.8.1

PDF\Reading\ImageCodecs\HeaderCursor
Bounded metadata cursor; this never decodes compressed image content. @internal

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(string $bytes, ?PDF\Reading\ImageCodecs\InspectionBudget $budget = null)

Declared by PDF\Reading\ImageCodecs\HeaderCursor · View the code ↗

Declared methods

byte()

public function byte(): int
@phpstan-impure

Declared by PDF\Reading\ImageCodecs\HeaderCursor · View the code ↗

read()

public function read(int $length): string

Declared by PDF\Reading\ImageCodecs\HeaderCursor · View the code ↗

uint32()

public function uint32(): int
@phpstan-impure

Declared by PDF\Reading\ImageCodecs\HeaderCursor · View the code ↗

word()

public function word(): int
@phpstan-impure

Declared by PDF\Reading\ImageCodecs\HeaderCursor · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly int $lengthPDF\Reading\ImageCodecs\HeaderCursor
public int $positionPDF\Reading\ImageCodecs\HeaderCursor