9 #include "base/macros.h" 10 #include "util/sinksource.h" 33 static bool IsZlibSource(
Source* source);
43 std::unique_ptr<uint8_t[]> buf_;
47 bool RefillInternal();
55 explicit ZlibSink(
Sink* sub,
unsigned level = 0,
size_t buf_size = 1 << 16);
58 Status Append(
const strings::ByteRange& slice)
final;
62 std::unique_ptr<Sink> sub_;
63 std::unique_ptr<uint8_t[]> buf_;