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