Skip to content
C port of the snappy compressor
C C++
Find file
Latest commit 8015f2d @andikleen Merge pull request #15 from pakhuchiy/win32
Add support of building snappy.c with mingw-w64
Failed to load latest commit information.
.gitignore Add .gitignore
LICENSE Add a LICENSE file
Makefile Android support
README.md Add support for generating HTML/man documentation
bench.c Replace sys/fcntl.h with fcntl.h everywhere
compat.h Add support of building snappy.c with mingw-w64
fuzzer.c Replace sys/fcntl.h with fcntl.h everywhere
glue.c add minilzo-2.06 and lz4 to bench
map.c
map.h fuzzer updates
scmd.c Replace sys/fcntl.h with fcntl.h everywhere
sgverify.c Replace sys/fcntl.h with fcntl.h everywhere
snappy-int.h use likely/unlikely
snappy.c Clear unused pointer fields in struct env
snappy.h update README.md
src.lex updates
util.c Fixed compiler warnings about signed/unsigned comparisons, unused and…
util.h resync with kernel code
verify.c Add -v (verbose) option to verify

README.md

snappy-c

This is a C port of the google snappy compressor (http://code.google.com/p/snappy/) The compressor is very fast with reasonable compression ratio. It is mainly useful for projects that cannot integrate C++ code, but want snappy. Also contains a command line tool, a benchmark, random test code and a fuzz tester.

The compression code supports scather-gather and linear buffers. The scather gather code is ifdefed (-DSG) and can be removed with unifdef.

API documentation: http://halobates.de/snappy.html

To generate the documentation run

make html

Requires the kerneldoc script from a Linux kernel source (may need to point the makefile to it). If you don't have the kernel source lying around just download it from https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/scripts/kernel-doc and point the Makefile to it.

Andi Kleen

Something went wrong with that request. Please try again.