pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($mode) | |
getMode () | |
update ($data) | |
Static Public Member Functions | |
static | getName () |
Return the name of the algorithm. | |
static | isAvailable () |
Protected Attributes | |
$mode | |
Compression/decompression mode. | |
$stream | |
Compression/decompression stream. | |
Static Protected Attributes | |
static | $deflateFactory |
Factory used to deflate (compress) data. | |
static | $inflateFactory |
Factory used to inflate (decompress) data. | |
Additional Inherited Members | |
![]() | |
const | MODE_COMPRESS = 0 |
Use the algorithm for compression. | |
const | MODE_UNCOMPRESS = 1 |
Use the algorithm for decompression. | |
fpoirotte\Pssht\Compression\Zlib::__construct | ( | $mode | ) |
Construct a (de)compression algorithm.
opaque | $mode | Mode in which the algorithm is being used. Either CompressionInterface::MODE_COMPRESS or CompressionInterface::MODE_UNCOMPRESS. |
Implements fpoirotte\Pssht\Compression\CompressionInterface.
Definition at line 33 of file Zlib.php.
References fpoirotte\Pssht\Compression\Zlib\$mode.
fpoirotte\Pssht\Compression\Zlib::getMode | ( | ) |
Get the mode in which the algorithm is being used.
opaque | Either CompressionInterface::MODE_COMPRESS or CompressionInterface::MODE_UNCOMPRESS. |
Implements fpoirotte\Pssht\Compression\CompressionInterface.
Definition at line 59 of file Zlib.php.
References fpoirotte\Pssht\Compression\Zlib\$mode.
|
static |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.
fpoirotte\Pssht\Compression\Zlib::update | ( | $data | ) |
Add data to (de)compress.
string | $data | Additional data to compress or decompress, depending on the algorithm's mode. |
string | (Un)compressed data. |
Implements fpoirotte\Pssht\Compression\CompressionInterface.