https://github.com/timo/compress-zstd
https://github.com/timo/compress-zstd
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timo/compress-zstd
- Owner: timo
- License: artistic-2.0
- Created: 2019-06-13T16:02:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T18:09:19.000Z (almost 7 years ago)
- Last Synced: 2025-08-09T14:17:21.340Z (10 months ago)
- Language: Perl 6
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/timo/Compress-Zstd)
NAME
====
Compress::Zstd - Native binding to Facebook's Zstd compression library
SYNOPSIS
========
```perl6
use Compress::Zstd;
my $compressor = Zstd::Compressor.new;
$comp.compress("hello how are you today?".encode("utf8"));
my $result = $comp.end-stream;
"/tmp/compressed.zstd".IO.spurt($result);
$result.append("here is some bonus junk at the end".encode("utf8"));
my $decompressor = Zstd::Decompressor.new;
my $decomp-result = $decompressor.decompress($result);
my $the-junk-at-the-end-again = $decompressor.get-leftovers;
```
DESCRIPTION
===========
Compress::Zstd lets you read and write data compressed with facebook's zstd library.
The API is not yet stable and may receive some improvements and/or clarifications in future versions.
AUTHOR
======
Timo Paulssen
COPYRIGHT AND LICENSE
=====================
Copyright 2019 Timo Paulssen
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.