SetaPDF_Core_Image_Gif_Reader_Sequence Class used to read GIF sequences.

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

Class hierarchy

Summary

Properties

$_buffer

The buffer that will get filled with all the sequences.

$_currentPos

The current sequence position.

$_initialPos

The position at the start of the sequence.

$_reader

The currently used reader instance.


Methods

__construct()

getBufferLength()

Returns the buffer length.

getReader()

Gets the currently attached reader instance.

readByte()

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

Reads a single byte from the sequence.

Exceptions

Throws SetaPDF_Core_Image_Exception

readBytes()

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

Reads parts of the sequence.

Parameters
$length : int
 
Exceptions

Throws SetaPDF_Core_Image_Exception

readUntilEndOfStream()

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

Exceptions

Throws SetaPDF_Core_Image_Exception

reset()

Resets the buffer.