Skip to content

Zstd binding for Erlang/Elixir

License

Notifications You must be signed in to change notification settings

alertlogic/zstd-erlang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zstd-erlang

Build Status Hex.pm

Zstd binding for Erlang/Elixir

http://facebook.github.io/zstd/

The current version uses v1.3.3

Usage

zstd:compress(Binary).
zstd:compress(Binary, CompressionLevel).
zstd:decompress(Binary).
1> Compressed = zstd:compress(<<"Hello, World!">>).
<<40,181,47,253,32,13,105,0,0,72,101,108,108,111,44,32,87,
  111,114,108,100,33>>
2> zstd:decompress(Compressed).
<<"Hello, World!">>

For Elixir

iex(1)> compressed = :zstd.compress("Hello, World!")
<<40, 181, 47, 253, 32, 13, 105, 0, 0, 72, 101, 108, 108, 111, 44, 32, 87, 111,
  114, 108, 100, 33>>
iex(2)> :zstd.decompress(compressed)
"Hello, World!"

About

Zstd binding for Erlang/Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.6%
  • C++ 3.4%
  • Shell 2.4%
  • HTML 1.9%
  • Makefile 1.9%
  • Python 1.3%
  • Other 1.5%