Racket ffi for snappy compression library

License: Other

Language: Racket

Racket FFI bindings for snappy


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
  • 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.

Project Statistics

Sourcerank 3
Repository Size 8.79 KB
Stars 1
Forks 0
Watchers 2
Open issues 0
Dependencies 0
Contributors 2
Tags 0
Last updated
Last pushed

Top Contributors See all

Asumu Takikawa Stephen Chang

Packages Referencing this Repo

FFI bindings to snappy, a fast compression library
Latest release - Published - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-08-12 23:37:15 UTC

Login to resync this repository