zlib api
raw compress and uncompress