aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/spack/compression.h
blob: dc14cb561aa1ca7b678cef7ae73415fc63ba1b4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "spack_v1.h"

#include <util/stream/input.h>
#include <util/stream/output.h>

namespace NMonitoring {

class IFramedCompressStream: public IOutputStream { 
public: 
    virtual void FlushWithoutEmptyFrame() = 0; 
    virtual void FinishAndWriteEmptyFrame() = 0; 
}; 
 
THolder<IInputStream> CompressedInput(IInputStream* in, ECompression alg); 
THolder<IFramedCompressStream> CompressedOutput(IOutputStream* out, ECompression alg); 
 
} // namespace NMonitoring