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

 Methods

Class constructor

__construct(null | array | \Traversable $options) 

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

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

Parameters

$content

string

Exceptions

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

Returns

string

Returns the adapter name

toString() : string

Returns

string