1Compress::Stream::Zstd:U:sDeercoCmopnrtersisbourt(e3d)PCeormlprDeoscsu:m:eSnttraetaimo:n:Zstd::Decompressor(3)
2
3
4
6 Compress::Stream::Zstd::Decompressor - Zstd streaming decompression
7
9 use Compress::Stream::Zstd::Decompressor qw(ZSTD_DSTREAM_IN_SIZE);
10
11 my $decompressor = Compress::Stream::Zstd::Decompressor->new;
12 while (read($fh, my $buffer, ZSTD_DSTREAM_IN_SIZE)) {
13 print $decompressor->decompress($buffer);
14 }
15
17 The Compress::Stream::Zstd::Decompressor module provides a streaming
18 interface to the Zstd decompressor.
19
21 Compress::Stream::Zstd::Decompressor->new()
22 :Compress::Stream::Zstd::Decompressor
23 Create an instance of Compress::Stream::Zstd::Decompressor.
24
25 $decompressor->init() :Undef
26 (re)init the decompressor.
27
28 $decompressor->decompress($input) :Str
29 Consume input stream.
30
31 $decompressor->set_parameter( PARAMETER => VALUE )
32 Sets one of the decompressor’s internal parameters. PARAMETER is one of
33 the parameter constants listed below.
34
36 ZSTD_DSTREAM_IN_SIZE
37 Recommended size for input buffer.
38
40 The following may be given to set_parameter():
41
42 • "ZSTD_d_windowLogMax"
43
45 Compress::Stream::Zstd
46
48 Copyright (c) 2016, Jiro Nishiguchi
49 All rights reserved.
50
51 Redistribution and use in source and binary forms, with or without modification,
52 are permitted provided that the following conditions are met:
53
54 1. Redistributions of source code must retain the above copyright notice, this
55 list of conditions and the following disclaimer.
56
57 2. Redistributions in binary form must reproduce the above copyright notice,
58 this list of conditions and the following disclaimer in the documentation
59 and/or other materials provided with the distribution.
60
61 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
62 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
63 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
64 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
65 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
66 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
67 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
68 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
69 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
70 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
71
73 Jiro Nishiguchi <jiro@cpan.org>
74
75 Zstandard by Facebook, Inc.
76
77
78
79perl v5.36.0 2023-0C1o-m2p0ress::Stream::Zstd::Decompressor(3)