compression.h 476 B

12345678910111213141516171819
  1. #pragma once
  2. #include "spack_v1.h"
  3. #include <util/stream/input.h>
  4. #include <util/stream/output.h>
  5. namespace NMonitoring {
  6. class IFramedCompressStream: public IOutputStream {
  7. public:
  8. virtual void FlushWithoutEmptyFrame() = 0;
  9. virtual void FinishAndWriteEmptyFrame() = 0;
  10. };
  11. THolder<IInputStream> CompressedInput(IInputStream* in, ECompression alg);
  12. THolder<IFramedCompressStream> CompressedOutput(IOutputStream* out, ECompression alg);
  13. } // namespace NMonitoring