Custom Compressor Interface
In general, the interface for a custom compressor must match that of RWSnappyCompressor. More specifically:
*The interface must include the methods compress(), decompress(), and max_compressed_length(). The method uncompressed_length() is not required, but may be helpful.
*The above methods must return a negative value to indicate failure, and 0 to indicate success.