Compression adapter for php snappy (http://code.google.com/p/php-snappy/)

package Default

 Methods

Class constructor

__construct(null|array|\Traversable $options = null

Parameters

$options

nullarray\Traversable

(Optional) Options to set

Exceptions

\Zend\Filter\Exception\ExtensionNotLoadedException if snappy extension not loaded

Compresses the given content

compress(string $content) : string
inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::compress()

Parameters

$content

string

Exceptions

\Zend\Filter\Exception\RuntimeException on memory, output length or data warning

Returns

string

Decompresses the given content

decompress(string $content) : string
inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::decompress()

Parameters

$content

string

Exceptions

\Zend\Filter\Exception\RuntimeException on memory, output length or data warning

Returns

string

Returns the adapter name

toString() : string
inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::toString()

Returns

string