Documentation

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

Methods

decompress()

public decompress(string $data, int &$datLen) : string|bool
Parameters
$data : string
$datLen : int
Return values
string|bool

GetCode()

public GetCode(string &$data, int $bInit) : int
Parameters
$data : string
$bInit : int
Return values
int

LZWCommand()

public LZWCommand(string &$data, int|bool $bInit) : int
Parameters
$data : string
$bInit : int|bool
Return values
int

        
On this page

Search results