Class for handling LZW encoded data.
More...
|
| decode ($data) |
| Method to decode LZW compressed data.
|
|
|
| addStringToTable ($oldString, $newString='') |
| Add a new string to the string table.
|
|
| getNextCode () |
| Returns the next 9, 10, 11 or 12 bits.
|
|
| initsTable () |
| Initialize the string table.
|
|
|
array | $andTable = [511, 1023, 2047, 4095] |
|
int | $bitsToGet = 9 |
|
int | $bytePointer |
|
null string | $data |
|
int | $dataLength = 0 |
|
int | $nextBits = 0 |
|
int | $nextData = 0 |
|
array | $sTable = [] |
|
int | $tIdx |
|
Class for handling LZW encoded data.
◆ addStringToTable()
Lzw::addStringToTable |
( |
| $oldString, |
|
|
| $newString = '' ) |
|
protected |
Add a new string to the string table.
- Parameters
-
string | $oldString | |
string | $newString | |
◆ decode()
Method to decode LZW compressed data.
- Parameters
-
string | $data | The compressed data |
- Return values
-
string | The uncompressed data |
- Exceptions
-
Implements FilterInterface.
◆ getNextCode()
Returns the next 9, 10, 11 or 12 bits.
- Return values
-
The documentation for this class was generated from the following file:
- mod/assign/feedback/editpdf/fpdi/PdfParser/Filter/Lzw.php