setasign\SetaPDF2\Core\Image\Gif\Reader

Sequence Class used to read GIF sequences.

File: /SetaPDF v2/Core/Image/Gif/Reader/Sequence.php
Old class name (alias): \SetaPDF_Core_Image_Gif_Reader_Sequence

Class hierarchy

Summary

Properties

$_buffer

private string Sequence::$_buffer

The buffer that will get filled with all the sequences.

$_currentPos

private int Sequence::$_currentPos

The current sequence position.

$_initialPos

private int Sequence::$_initialPos

The position at the start of the sequence.

$_reachedEnd

private Sequence::$_reachedEnd = false

$_reader

The currently used reader instance.


Methods

__construct()

The constructor.

Parameters
$reader : \SetaPDF_Core_Reader_Binary
 

getBufferLength()

public Sequence::getBufferLength (
void
): int

Returns the buffer length.

getReader()

Gets the currently attached reader instance.

readByte()

public Sequence::readByte (
void
): false|string

Reads a single byte from the sequence.

Exceptions

Throws \setasign\SetaPDF2\Core\Image\Exception

readBytes()

public Sequence::readBytes (
int $length
): false|string

Reads parts of the sequence.

Parameters
$length : int
 
Exceptions

Throws \setasign\SetaPDF2\Core\Image\Exception

readUntilEndOfStream()

public Sequence::readUntilEndOfStream (
void
): void

Reads the whole stream and moves to the end of it.

Exceptions

Throws \setasign\SetaPDF2\Core\Image\Exception

reset()

public Sequence::reset (
void
): void

Resets the buffer.