Compre...tionary(3pm)
π Compre...tionary β the Zstd decompression dictionary page, explained
ok so this is the manual for Compress::Stream::Zstd::DecompressionDictionary from the User Contributed Perl Documentation, bestie. it's a whole module about Zstd decompression dictionaries and honestly? kinda iconic. let's get into it β¨
πΈ NAME πΈ
Compress::Stream::Zstd::DecompressionDictionary β literally the Zstd decompression dictionary module. that's the whole vibe. π
π¦ SYNOPSIS π¦
ok here's how you actually use it, copy-paste energy:
use Compress::Stream::Zstd::DecompressionContext;
use Compress::Stream::Zstd::DecompressionDictionary;
my $ddict = Compress::Stream::Zstd::DecompressionDictionary->new_from_file($filename);
my $dctx = Compress::Stream::Zstd::DecompressionContext->new;
my $dest = $cctx->decompress_using_dict($src, $ddict);
load both modules, build a dictionary from a file with new_from_file, spin up a decompression context with new, then call decompress_using_dict on your source with the dict. that's the flow, no cap. π«Ά
yes i'm keeping it exactly as written, $cctx and all β that's what the page says, so that's what you get. not me changing the source material π
β¨ DESCRIPTION β¨
(Experimental) β so like, lowkey still in beta, be aware of that π
Compress::Stream::Zstd::DecompressionDictionary provides Zstd decompression dictionaries. that's it, that's the job. it holds the dictionary data so your decompressor knows what's up. π₯
π METHODS π
π§ Compress::Stream::Zstd::DecompressionDictionary->new($dict)
:Compress::Stream::Zstd::DecompressionDictionary
creates a new instance of Compress::Stream::Zstd::DecompressionDictionary. fresh object, who dis. β¨
π Compress::Stream::Zstd::DecompressionDictionary->new_from_file($filename)
:Compress::Stream::Zstd::DecompressionDictionary
creates a new instance of Compress::Stream::Zstd::DecompressionDictionary from file β you point it at $filename and it does the loading for you. obsessed. π
π SEE ALSO π
Compress::Stream::Zstd β the parent module, go check it out iykyk π
π LICENSE π
ok legal era, pay attention bestie:
Copyright (c) 2016, Jiro Nishiguchi
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tl;dr: BSD-style, keep the copyright notice, no warranty, don't come for them if it breaks. standard legal bestie behaviour π«Ά
β AUTHOR β
Jiro Nishiguchi <jiro@cpan.org> β legend π
Zstandard by Facebook, Inc. β also legends, respectfully π
anyway that's the whole page, you're now officially a Zstd decompression dictionary understander, main character energy fr fr πΈπ¦π«
this was perl v5.40.0, dated 2024-07-18, closing out Compre...tionary(3pm) β mwah, bye bestie π
π
π¦ where this page comes from
- epel 10: perl-Compress-Stream-Zstd 0.206-7.el10_0 Β· BSD-2-Clause AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms