class final Optional · pdftoolkit/pdf-codecs 0.1.0

PDFToolkit\Codecs\Jpeg2000\Input
A bounded view; all lengths are checked before slicing or advancing.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

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

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

Declared methods

done()

public function done(): void

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

remaining()

public function remaining(): int

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

skip()

public function skip(int $length): void
@phpstan-impure

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

take()

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

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

u16()

public function u16(): int
@phpstan-impure

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

u32()

public function u32(): int
@phpstan-impure

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

u8()

public function u8(): int
@phpstan-impure

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

view()

public function view(int $length): self
@phpstan-impure

Declared by PDFToolkit\Codecs\Jpeg2000\Input · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly string $bytesPDFToolkit\Codecs\Jpeg2000\Input
public readonly int $endPDFToolkit\Codecs\Jpeg2000\Input
public int $positionPDFToolkit\Codecs\Jpeg2000\Input