<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
package IO::Compress::Zlib::Constants ;

use strict ;
use warnings;
use bytes;

require Exporter;

our ($VERSION, @ISA, @EXPORT);

$VERSION = '2.064';

@ISA = qw(Exporter);

@EXPORT= qw(

        ZLIB_HEADER_SIZE
        ZLIB_TRAILER_SIZE

        ZLIB_CMF_CM_OFFSET
        ZLIB_CMF_CM_BITS
        ZLIB_CMF_CM_DEFLATED

        ZLIB_CMF_CINFO_OFFSET
        ZLIB_CMF_CINFO_BITS 
        ZLIB_CMF_CINFO_MAX

        ZLIB_FLG_FCHECK_OFFSET
        ZLIB_FLG_FCHECK_BITS

        ZLIB_FLG_FDICT_OFFSET
        ZLIB_FLG_FDICT_BITS

        ZLIB_FLG_LEVEL_OFFSET
        ZLIB_FLG_LEVEL_BITS

        ZLIB_FLG_LEVEL_FASTEST
        ZLIB_FLG_LEVEL_FAST
        ZLIB_FLG_LEVEL_DEFAULT
        ZLIB_FLG_LEVEL_SLOWEST

        ZLIB_FDICT_SIZE

        );

# Constant names derived from RFC1950

use constant ZLIB_HEADER_SIZE       =&gt; 2;
use constant ZLIB_TRAILER_SIZE      =&gt; 4;

use constant ZLIB_CMF_CM_OFFSET     =&gt; 0;
use constant ZLIB_CMF_CM_BITS       =&gt; 0xF ; # 0b1111
use constant ZLIB_CMF_CM_DEFLATED   =&gt; 8;

use constant ZLIB_CMF_CINFO_OFFSET  =&gt; 4;
use constant ZLIB_CMF_CINFO_BITS    =&gt; 0xF ; # 0b1111;
use constant ZLIB_CMF_CINFO_MAX     =&gt; 7;

use constant ZLIB_FLG_FCHECK_OFFSET =&gt; 0;
use constant ZLIB_FLG_FCHECK_BITS   =&gt; 0x1F ; # 0b11111;

use constant ZLIB_FLG_FDICT_OFFSET  =&gt; 5;
use constant ZLIB_FLG_FDICT_BITS    =&gt; 0x1 ; # 0b1;

use constant ZLIB_FLG_LEVEL_OFFSET  =&gt; 6;
use constant ZLIB_FLG_LEVEL_BITS    =&gt; 0x3 ; # 0b11;

use constant ZLIB_FLG_LEVEL_FASTEST =&gt; 0;
use constant ZLIB_FLG_LEVEL_FAST    =&gt; 1;
use constant ZLIB_FLG_LEVEL_DEFAULT =&gt; 2;
use constant ZLIB_FLG_LEVEL_SLOWEST =&gt; 3;

use constant ZLIB_FDICT_SIZE        =&gt; 4;


1;
</pre></body></html>