snappy

FFI bindings to snappy, a fast compression library


Keywords
compression
License
Other

Documentation

Racket FFI bindings for snappy

Scribble

Racket FFI bindings for the snappy compression library.

To install on Racket v5.3.2 or newer:

  • raco pkg install snappy

On older versions of Racket:

  • git clone https://github.com/stchang/snappy
  • raco link snappy/snappy

 (require snappy)
(compress input) -> bytes?
  input : bytes?

Compresses the input bytestring and returns the resulting bytestring.

(uncompress input) -> bytes?
  input : (and/c bytes? valid-compression?)

Uncompresses the input bytestring and returns the resulting bytestring.

(valid-compression? input) -> boolean?
  input : bytes?

Returns #t if input is a compressed bytestring that can be uncompressed with Snappy. Otherwise returns #f.


Copyright (c) 2013-2015 Stephen Chang, Asumu Takikawa

Licensed under the BSD license. See COPYING.