No description
Find a file
2018-08-14 16:11:38 +03:00
nimsnappyc First and last (maybe) commit 2018-05-11 07:24:42 +03:00
tests Return the empty result for the empty inputs 2018-08-14 16:11:38 +03:00
.appveyor.yml Added CIs testing 2018-07-11 18:38:17 +03:00
.gitignore Initial commit 2018-05-11 07:21:51 +03:00
.travis.yml Added gcc(g++)-multilib for Travis CI 2018-07-25 04:47:36 +03:00
LICENSE Updated readme, license and .nimble 2018-05-27 07:51:27 +03:00
nimsnappyc.nim Return the empty result for the empty inputs 2018-08-14 16:11:38 +03:00
nimsnappyc.nimble Return the empty result for the empty inputs 2018-08-14 16:11:38 +03:00
README.md Added CIs testing 2018-07-11 18:38:17 +03:00

Build Status Build status

NimSnappyC

NimSnappyC provides a Snappy compression/decompression for Nim through wrapping to snappy-c.

GitHub Repo

Installation

Add this to your application's .nimble file:

requires "nimsnappyc"

or to install globally run:

nimble install nimsnappyc

Usage

import nimsnappyc

# Compress a string:
let data = "0123456789abcdef"
let compressed = snappyCompress(data)

# Get the uncompressed length of compressed data:
let uncompressedLen = snappyUncompressedLength(compressed)

# Uncompress a compressed data:
let uncompressed = snappyUncompress(compressed)

Raises the SnappyError exception on errors.

Contributing

  1. Fork it (https://github.com/NimCompression/nimsnappyc/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT

Authors: NimCompression

Snappy-C License

BSD 3-Clause License

Author: Andi Kleen