class FilterLZW

Properties

$sTable
$data
$dataLength
$tIdx
$bitsToGet
$bytePointer
$bitPointer
$nextData
$nextBits
$andTable

Methods

error($msg)

No description

decode(string $data)

Method to decode LZW compressed data.

initsTable()

Initialize the string table.

addStringToTable($oldString, $newString = '')

Add a new string to the string table.

getNextCode()

No description

encode($in)

No description

Details

at line 35
error($msg)

Parameters

$msg

at line 44
decode(string $data)

Method to decode LZW compressed data.

Parameters

string $data data The compressed data.

at line 105
initsTable()

Initialize the string table.

at line 118
addStringToTable($oldString, $newString = '')

Add a new string to the string table.

Parameters

$oldString
$newString

at line 134
getNextCode()

at line 153
encode($in)

Parameters

$in