1Compress::Stream::Zstd:U:sDeercoCmopnCrtoermsipsbriueotsnesCd:o:nPSteterrxleta(Dm3o:pc:muZ)msetndt:a:tDieocnompressionContext(3pm)
2
3
4
6 Compress::Stream::Zstd::DecompressionContext - Zstd decompression
7 context
8
10 use Compress::Stream::Zstd::DecompressionContext;
11
12 my $dctx = Compress::Stream::Zstd::DecompressionContext->new;
13 my $dest = $dctx->compress($src, $level);
14
16 (Experimental) The Compress::Stream::Zstd::DecompressionContext module
17 provides Zstd decompression context.
18
20 Compress::Stream::Zstd::DecompressionContext->new()
21 :Compress::Stream::Zstd::DecompressionContext
22 Create an instance of Compress::Stream::Zstd::DecompressionContext.
23
24 $dctx->decompress($source)
25 Decompresses the given buffer and returns the resulting bytes.
26
27 On error (in case of corrupted data) undef is returned.
28
29 $dctx->decompress_using_dict($source, $dict)
30 Decompresses the given buffer using decompression dictionary and
31 returns the resulting bytes.
32
33 On error (in case of corrupted data) undef is returned.
34
36 <http://www.zstd.net/>
37
39 Copyright (c) 2016, Jiro Nishiguchi
40 All rights reserved.
41
42 Redistribution and use in source and binary forms, with or without modification,
43 are permitted provided that the following conditions are met:
44
45 1. Redistributions of source code must retain the above copyright notice, this
46 list of conditions and the following disclaimer.
47
48 2. Redistributions in binary form must reproduce the above copyright notice,
49 this list of conditions and the following disclaimer in the documentation
50 and/or other materials provided with the distribution.
51
52 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
53 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
54 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
55 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
56 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
57 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
58 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
59 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
60 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
61 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62
64 Jiro Nishiguchi <jiro@cpan.org>
65
66 Zstandard by Facebook, Inc.
67
68
69
70perl v5.38.0 Compr2e0s2s3:-:0S7t-r2e0am::Zstd::DecompressionContext(3pm)