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

Public Member Functions

 __construct ($mode)
 
 getMode ()
 
 update ($data)
 

Static Public Member Functions

static getName ()
 Return the name of the algorithm.
 

Protected Attributes

 $mode
 Compression/decompression mode.
 

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.
 

Detailed Description

Null compression (= no compression).

Definition at line 17 of file None.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Compression\None::__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 22 of file None.php.

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

Member Function Documentation

fpoirotte\Pssht\Compression\None::getMode ( )

Get the mode in which the algorithm is being used.

Return values
opaqueEither CompressionInterface::MODE_COMPRESS or CompressionInterface::MODE_UNCOMPRESS.

Implements fpoirotte\Pssht\Compression\CompressionInterface.

Definition at line 27 of file None.php.

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

fpoirotte\Pssht\Compression\None::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 37 of file None.php.


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