Compression adapter for php snappy (http://code.google.com/p/php-snappy/)
Class constructor
Parameters: | null|array|Traversable – (Optional) Options to set |
---|---|
Throws ExceptionExtensionNotLoadedException: | |
if snappy extension not loaded |
Compresses the given content
Parameters: | string – |
---|---|
Return type: | string |
Throws : | ExceptionRuntimeException on memory, output length or data warning |
Decompresses the given content
Parameters: | string – |
---|---|
Return type: | string |
Throws : | ExceptionRuntimeException on memory, output length or data warning |