C++ snappy stream realisation, compatible with http://github.com/dain/snappy