1 // Copyright (C) 2019 Joel Rosdahl and other contributors
3 // See doc/AUTHORS.adoc for a complete list of contributors.
5 // This program is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License as published by the Free
7 // Software Foundation; either version 3 of the License, or (at your option)
10 // This program is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 // You should have received a copy of the GNU General Public License along with
16 // this program; if not, write to the Free Software Foundation, Inc., 51
17 // Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #include "Compressor.hpp"
24 #include "NonCopyable.hpp"
26 // A compressor of an uncompressed stream.
27 class NullCompressor : public Compressor, NonCopyable
31 // - stream: The file to write data to.
32 explicit NullCompressor(FILE* stream);
34 int8_t actual_compression_level() const override;
35 void write(const void* data, size_t count) override;
36 void finalize() override;