nimsnappy

Nim wrapper for the snappy compression library. there is also a high-level API for easy use


Keywords
wrapper, compression, nim-wrapper, snappy
License
BSD-3-Clause
Install
nimble install nimsnappy

Documentation

nimsnappy

Nim wrapper for the snappy compression library. there is also a high-level API to for easy usage. The two functions exposed are compress and uncompress. This wrapper tracks snappy version 1.1.3

Example usage:

import nimsnappy
var input = readFile("LICENSE")
var compress = compress(input)
var decompress = uncompress(compress)
echo(decompress==input)