pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Compression\OpensshCom\Zlib Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Compression\OpensshCom\Zlib:

Public Member Functions

 __construct ($mode)
 
 setAuthenticated ()
 Sets a flag indicating user authentication success.
 
 update ($data)
 
- Public Member Functions inherited from fpoirotte\Pssht\Compression\Zlib
 __construct ($mode)
 
 getMode ()
 
 update ($data)
 

Static Public Member Functions

static getName ()
 Return the name of the algorithm.
 
- Static Public Member Functions inherited from fpoirotte\Pssht\Compression\Zlib
static getName ()
 Return the name of the algorithm.
 
static isAvailable ()
 

Protected Attributes

 $authenticated
 Flag indicating whether user authentication succeeded or not.
 
- Protected Attributes inherited from fpoirotte\Pssht\Compression\Zlib
 $mode
 Compression/decompression mode.
 
 $stream
 Compression/decompression stream.
 

Additional Inherited Members

- Public Attributes inherited from fpoirotte\Pssht\Compression\CompressionInterface
const MODE_COMPRESS = 0
 Use the algorithm for compression.
 
const MODE_UNCOMPRESS = 1
 Use the algorithm for decompression.
 
- Static Protected Attributes inherited from fpoirotte\Pssht\Compression\Zlib
static $deflateFactory
 Factory used to deflate (compress) data.
 
static $inflateFactory
 Factory used to inflate (decompress) data.
 

Detailed Description

Delayed ZLIB compression.

Definition at line 17 of file Zlib.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Compression\OpensshCom\Zlib::__construct (   $mode)

Construct a (de)compression algorithm.

Parameters
opaque$modeMode in which the algorithm is being used. Either CompressionInterface::MODE_COMPRESS or CompressionInterface::MODE_UNCOMPRESS.

Implements fpoirotte\Pssht\Compression\CompressionInterface.

Definition at line 23 of file Zlib.php.

References fpoirotte\Pssht\Compression\Zlib\$mode.

Member Function Documentation

fpoirotte\Pssht\Compression\OpensshCom\Zlib::update (   $data)

Add data to (de)compress.

Parameters
string$dataAdditional data to compress or decompress, depending on the algorithm's mode.
Return values
string(Un)compressed data.

Implements fpoirotte\Pssht\Compression\CompressionInterface.

Definition at line 40 of file Zlib.php.


The documentation for this class was generated from the following file: