Compre...ontext(3pm)
π NAME
ok so bestie, welcome to Compress::Stream::Zstd::DecompressionContext β it's a Zstd decompression context, and yes that's the whole vibe. (This page comes to you via User Contributed Perl Documentation, iykyk π«Ά)
β¨ SYNOPSIS
use Compress::Stream::Zstd::DecompressionContext;
my $dctx = Compress::Stream::Zstd::DecompressionContext->new;
my $dest = $dctx->compress($src, $level);
like yes, that's genuinely it, copy-paste energy πΈ
π¦ DESCRIPTION
(Experimental) β read that again, bestie, it's giving "we're still figuring things out" π
The Compress::Stream::Zstd::DecompressionContext module provides a Zstd decompression context. That's the whole job description. She's a specialist. She decompresses. Periodt. π
π METHODS
β Compress::Stream::Zstd::DecompressionContext->new()
:Compress::Stream::Zstd::DecompressionContext
Creates an instance of Compress::Stream::Zstd::DecompressionContext β your very own main character context object β¨
π $dctx->decompress($source)
Decompresses the buffer you hand it and returns the resulting bytes. Simple. Iconic. Slay. π
β οΈ On error (like, in case of corrupted data), undef is returned. So please check your return value, bestie, don't just assume π
π¦ $dctx->decompress_using_dict($source, $dict)
Same deal, but it decompresses the given buffer using a decompression dictionary β and returns the resulting bytes. Dictionary girlies stay winning π
β οΈ Again: on error (in case of corrupted data) undef is returned. Same warning, same energy. Guard your code fr fr π
π SEE ALSO
<http://www.zstd.net/> β go be nosy, bestie π
π LICENSE
ok legal moment, no skipping, here's the whole thing verbatim because copyright is not a vibe you mess with π
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.
π«Ά AUTHOR
Jiro Nishiguchi <jiro@cpan.org> π
Zstandard by Facebook, Inc. π₯
ok that's the whole page, bestie, you ate that π stay compressed (jk, stay decompressed) β mwah π
perl v5.40.0 Β· 2024-07-18 β that's the version and date, bookmark it, and the man page name is Compre...ontext(3pm) in case you forgot already π
π¦ 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