class final Optionnel · pdftoolkit/pdf-reader 0.1.7

PDF\Reading\ByteCursor
A bounded view with absolute offsets; constructing it does not copy a slice.

Lire la déclaration source ↗

Héritage et contrats

Ce type ne déclare pas de parent, d’interface ou de trait.

Construction

__construct()

public function __construct(string $bytes, int $offset = 0, ?int $end = null)

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

Méthodes déclarées

eof()

public function eof(): bool

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

peek()

public function peek(int $length = 1): string

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

position()

public function position(): int

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

read()

public function read(int $length): string
@phpstan-impure

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

remaining()

public function remaining(): int

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

seek()

public function seek(int $offset): void
@phpstan-impure

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗

skipWhitespaceAndComments()

public function skipWhitespaceAndComments(): void
@phpstan-impure

Déclarée par PDF\Reading\ByteCursor · Voir le code ↗