SetaPDF_Core_Image_Gif_Reader_Bit Class used to read single bits.

File: /SetaPDF v2/Core/Image/Gif/Reader/Bit.php

Class hierarchy

Summary

Properties

$_bitOffset

The bit offset in the current byte.

$_currentByte

The currently read byte converted to a unsigned int8.

$_numBits

The number of bits that get read by readBits() call.

$_reader


Methods

_readByte()

Reads a new byte into the _currentByte property.

Exceptions

Throws SetaPDF_Core_Image_Exception

getReader()

Gets the currently attached reader instance.

readBits()

Reads the next bits.

Exceptions

Throws SetaPDF_Core_Image_Exception

setNumBits()

public SetaPDF_Core_Image_Gif_Reader_Bit::setNumBits (
int $numBits
): void

Sets the number of bits that shall be read.

Parameters
$numBits : int