pssht  latest
SSH server library written in PHP
CompressionInterface.php
1 <?php
2 
3 /*
4 * This file is part of pssht.
5 *
6 * (c) François Poirotte <clicky@erebot.net>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 
13 
17 interface CompressionInterface extends \fpoirotte\Pssht\Algorithms\AlgorithmInterface
18 {
20  const MODE_COMPRESS = 0;
21 
23  const MODE_UNCOMPRESS = 1;
24 
33  public function __construct($mode);
34 
43  public function getMode();
44 
55  public function update($data);
56 }
const MODE_COMPRESS
Use the algorithm for compression.
const MODE_UNCOMPRESS
Use the algorithm for decompression.