Skip to content

stchang/snappy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Racket ffi for snappy compression library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages