compress::raw::zlib.3

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· 3 代码 · 共 753 行 · 第 1/3 页

3
753
字号
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "Compress::Raw::Zlib 3".TH Compress::Raw::Zlib 3 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"Compress::Raw::Zlib \- Low\-Level Interface to zlib compression library.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\&    use Compress::Raw::Zlib ;\&\&    ($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) ;\&    $status = $d\->deflate($input, $output) ;\&    $status = $d\->flush($output [, $flush_type]) ;\&    $d\->deflateParams(OPTS) ;\&    $d\->deflateTune(OPTS) ;\&    $d\->dict_adler() ;\&    $d\->crc32() ;\&    $d\->adler32() ;\&    $d\->total_in() ;\&    $d\->total_out() ;\&    $d\->msg() ;\&    $d\->get_Strategy();\&    $d\->get_Level();\&    $d\->get_BufSize();\&\&    ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) ;\&    $status = $i\->inflate($input, $output [, $eof]) ;\&    $status = $i\->inflateSync($input) ;\&    $i\->dict_adler() ;\&    $d\->crc32() ;\&    $d\->adler32() ;\&    $i\->total_in() ;\&    $i\->total_out() ;\&    $i\->msg() ;\&    $d\->get_BufSize();\&\&    $crc = adler32($buffer [,$crc]) ;\&    $crc = crc32($buffer [,$crc]) ;\&\&    $crc = adler32_combine($crc1, $crc2, $len2)l\&    $crc = crc32_combine($adler1, $adler2, $len2)\&\&    ZLIB_VERSION\&    ZLIB_VERNUM.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"The \fICompress::Raw::Zlib\fR module provides a Perl interface to the \fIzlib\fRcompression library (see \*(L"\s-1AUTHOR\s0\*(R" for details about where to get\&\fIzlib\fR)..SH "Compress::Raw::Zlib::Deflate".IX Header "Compress::Raw::Zlib::Deflate"This section defines an interface that allows in-memory compression usingthe \fIdeflate\fR interface provided by zlib..PPHere is a definition of the interface available:.ie n .Sh "\fB($d, \fP\fB$status\fP\fB) = new Compress::Raw::Zlib::Deflate( [\s-1OPT\s0] ) \fP".el .Sh "\fB($d, \fP\f(CB$status\fP\fB) = new Compress::Raw::Zlib::Deflate( [\s-1OPT\s0] ) \fP".IX Subsection "($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) "Initialises a deflation object..PPIf you are familiar with the \fIzlib\fR library, it combines thefeatures of the \fIzlib\fR functions \f(CW\*(C`deflateInit\*(C'\fR, \f(CW\*(C`deflateInit2\*(C'\fRand \f(CW\*(C`deflateSetDictionary\*(C'\fR..PPIf successful, it will return the initialised deflation object, \f(CW$d\fRand a \f(CW$status\fR of \f(CW\*(C`Z_OK\*(C'\fR in a list context. In scalar context itreturns the deflation object, \f(CW$d\fR, only..PPIf not successful, the returned deflation object, \f(CW$d\fR, will be\&\fIundef\fR and \f(CW$status\fR will hold the a \fIzlib\fR error code..PPThe function optionally takes a number of named options specified as\&\f(CW\*(C`Name => value\*(C'\fR pairs. This allows individual options to betailored without having to specify them all in the parameter list..PPFor backward compatibility, it is also possible to pass the parametersas a reference to a hash containing the name=>value pairs..PPBelow is a list of the valid options:.IP "\fB\-Level\fR" 5.IX Item "-Level"Defines the compression level. Valid values are 0 through 9,\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR..SpThe default is Z_DEFAULT_COMPRESSION..IP "\fB\-Method\fR" 5.IX Item "-Method"Defines the compression method. The only valid value at present (andthe default) is Z_DEFLATED..IP "\fB\-WindowBits\fR" 5.IX Item "-WindowBits"For a definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fRrefer to the \fIzlib\fR documentation for \fIdeflateInit2\fR..SpDefaults to \s-1MAX_WBITS\s0..IP "\fB\-MemLevel\fR" 5.IX Item "-MemLevel"For a definition of the meaning and valid values for \f(CW\*(C`MemLevel\*(C'\fRrefer to the \fIzlib\fR documentation for \fIdeflateInit2\fR..SpDefaults to \s-1MAX_MEM_LEVEL\s0..IP "\fB\-Strategy\fR" 5.IX Item "-Strategy"Defines the strategy used to tune the compression. The valid values are\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR, \f(CW\*(C`Z_RLE\*(C'\fR, \f(CW\*(C`Z_FIXED\*(C'\fR and\&\f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR..SpThe default is Z_DEFAULT_STRATEGY..IP "\fB\-Dictionary\fR" 5.IX Item "-Dictionary"When a dictionary is specified \fICompress::Raw::Zlib\fR will automaticallycall \f(CW\*(C`deflateSetDictionary\*(C'\fR directly after calling \f(CW\*(C`deflateInit\*(C'\fR. TheAdler32 value for the dictionary can be obtained by calling the method 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?