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

use strict;
use warnings;
use bytes;

use IO::Compress::Base::Common  2.204 qw(:Status);
our ($VERSION);

$VERSION = '2.204';

sub mkCompObject
{
    my $level    = shift ;
    my $strategy = shift ;

    return bless {
                  'CompSize'   =&gt; 0,
                  'UnCompSize' =&gt; 0,
                  'Error'      =&gt; '',
                  'ErrorNo'    =&gt; 0,
                 } ;
}

sub compr
{
    my $self = shift ;

    if (defined ${ $_[0] } &amp;&amp; length ${ $_[0] }) {
        $self-&gt;{CompSize} += length ${ $_[0] } ;
        $self-&gt;{UnCompSize} = $self-&gt;{CompSize} ;

        if ( ref $_[1] )
          { ${ $_[1] } .= ${ $_[0] } }
        else
          { $_[1] .= ${ $_[0] } }
    }

    return STATUS_OK ;
}

sub flush
{
    my $self = shift ;

    return STATUS_OK;
}

sub close
{
    my $self = shift ;

    return STATUS_OK;
}

sub reset
{
    my $self = shift ;

    $self-&gt;{CompSize}   = 0;
    $self-&gt;{UnCompSize} = 0;

    return STATUS_OK;
}

sub deflateParams
{
    my $self = shift ;

    return STATUS_OK;
}

#sub total_out
#{
#    my $self = shift ;
#    return $self-&gt;{UnCompSize} ;
#}
#
#sub total_in
#{
#    my $self = shift ;
#    return $self-&gt;{UnCompSize} ;
#}

sub compressedBytes
{
    my $self = shift ;
    return $self-&gt;{UnCompSize} ;
}

sub uncompressedBytes
{
    my $self = shift ;
    return $self-&gt;{UnCompSize} ;
}

1;


__END__
</pre></body></html>