class final Optional · pdftoolkit/pdf-codecs 0.1.0

PDFToolkit\Codecs\Arithmetic\MqDecoder
MQ decoding, ISO/IEC 15444-1 Annex C; also used by JBIG2.
Adapted from Mozilla PDF.js arithmetic_decoder.js, copyright 2012 Mozilla Foundation,
Apache-2.0, revision ce87167432819f85df49b6b16c7a78556e9a4ee0.
Bounds, explicit budgets and PHP 64-bit state are local adaptations.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(string $bytes, int $start, int $end, PDFToolkit\Codecs\DecodeBudget $budget)

Declared by PDFToolkit\Codecs\Arithmetic\MqDecoder · View the code ↗

Declared methods

readBit()

public function readBit(PDFToolkit\Codecs\Arithmetic\ContextBuffer $contexts, int $context): int

Declared by PDFToolkit\Codecs\Arithmetic\MqDecoder · View the code ↗