1 # Copyright (C) 2020 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 # Provide the same methods as Compress::Raw::Zlib::Deflate but
5 # does no transformation of outgoing data
6 package PublicInbox::CompressNoop;
8 use Compress::Raw::Zlib qw(Z_OK);
10 sub new { bless \(my $self), __PACKAGE__ }
12 sub deflate { # ($self, $input, $output)
17 sub flush { # ($self, $output, $flags = Z_FINISH)