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()

private SetaPDF_Core_Image_Gif_Reader_Bit::_readByte (
void
): false|int

Reads a new byte.

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