class final Optional · pdftoolkit/pdf-reader 0.1.7

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

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

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

Declared by PDF\Reading\ByteCursor · View the code ↗

Declared methods

eof()

public function eof(): bool

Declared by PDF\Reading\ByteCursor · View the code ↗

peek()

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

Declared by PDF\Reading\ByteCursor · View the code ↗

position()

public function position(): int

Declared by PDF\Reading\ByteCursor · View the code ↗

read()

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

Declared by PDF\Reading\ByteCursor · View the code ↗

remaining()

public function remaining(): int

Declared by PDF\Reading\ByteCursor · View the code ↗

seek()

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

Declared by PDF\Reading\ByteCursor · View the code ↗

skipWhitespaceAndComments()

public function skipWhitespaceAndComments(): void
@phpstan-impure

Declared by PDF\Reading\ByteCursor · View the code ↗