vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / plugins / ape_reader / MAClib / Predictor.h
bloba3ca7475bff27ead340a2b66ed81a1238295c0de
1 #ifndef APE_PREDICTOR_H
2 #define APE_PREDICTOR_H
4 /*************************************************************************************************
5 IPredictorCompress - the interface for compressing (predicting) data
6 *************************************************************************************************/
7 class IPredictorCompress
9 public:
10 IPredictorCompress(int nCompressionLevel) {}
11 virtual ~IPredictorCompress() {}
13 virtual int CompressValue(int nA, int nB = 0) = 0;
14 virtual int Flush() = 0;
17 /*************************************************************************************************
18 IPredictorDecompress - the interface for decompressing (un-predicting) data
19 *************************************************************************************************/
20 class IPredictorDecompress
22 public:
23 IPredictorDecompress(int nCompressionLevel, int nVersion) {}
24 virtual ~IPredictorDecompress() {}
26 virtual int DecompressValue(int nA, int nB = 0) = 0;
27 virtual int Flush() = 0;
30 #endif // #ifndef APE_PREDICTOR_H