LzwCompression
in package
Class LzwCompression
An implementation of the LZW compression algorithm
Table of Contents
Properties
- $Buf : mixed
- $ClearCode : mixed
- $CodeSize : mixed
- $CurBit : mixed
- $Done : mixed
- $EndCode : mixed
- $FirstCode : mixed
- $Fresh : mixed
- $LastBit : mixed
- $LastByte : mixed
- $MAX_LZW_BITS : mixed
- $MaxCode : mixed
- $MaxCodeSize : mixed
- $Next : mixed
- $OldCode : mixed
- $SetCodeSize : mixed
- $sp : mixed
- $Stack : mixed
- $Vals : mixed
Methods
- __construct() : mixed
- decompress() : string|bool
- GetCode() : int
- LZWCommand() : int
Properties
$Buf
public
mixed
$Buf
$ClearCode
public
mixed
$ClearCode
$CodeSize
public
mixed
$CodeSize
$CurBit
public
mixed
$CurBit
$Done
public
mixed
$Done
$EndCode
public
mixed
$EndCode
$FirstCode
public
mixed
$FirstCode
$Fresh
public
mixed
$Fresh
$LastBit
public
mixed
$LastBit
$LastByte
public
mixed
$LastByte
$MAX_LZW_BITS
public
mixed
$MAX_LZW_BITS
$MaxCode
public
mixed
$MaxCode
$MaxCodeSize
public
mixed
$MaxCodeSize
$Next
public
mixed
$Next
$OldCode
public
mixed
$OldCode
$SetCodeSize
public
mixed
$SetCodeSize
$sp
public
mixed
$sp
$Stack
public
mixed
$Stack
$Vals
public
mixed
$Vals
Methods
__construct()
public
__construct() : mixed
decompress()
public
decompress(string $data, int &$datLen) : string|bool
Parameters
- $data : string
- $datLen : int
Return values
string|boolGetCode()
public
GetCode(string &$data, int $bInit) : int
Parameters
- $data : string
- $bInit : int
Return values
intLZWCommand()
public
LZWCommand(string &$data, int|bool $bInit) : int
Parameters
- $data : string
- $bInit : int|bool