-
Notifications
You must be signed in to change notification settings - Fork 1
/
LZRW1Tester.hh
48 lines (32 loc) · 1.23 KB
/
LZRW1Tester.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// LZRW1Tester.hh
// Scott F. Kaplan -- [email protected]
// August 1997
// A tester designed to work on the Lempel-Ziv-R?-Williams-1
// compression/decompression algorithm. We've chosen to test this
// particular algorithm because Douglis used it in his paper on
// compressed RAM caches.
// Prevent multiple inclusion by surrounding the header file with
// preprocessor directives.
#if !defined (_LZRW1TESTER_HH)
#define _LZRW1TESTER_HH
#include "CompressionAlgorithmTester.hh"
class LZRW1Tester : public CompressionAlgorithmTester {
public:
// The default constructor.
LZRW1Tester (char* outputFilename, const bool initUseFixedImages) :
CompressionAlgorithmTester(outputFilename, false) {}
protected:
// Perform the actual tasks of timing the compression and
// decompression of a given algorithm.
virtual void performCompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnCompressedSize,
unsigned long long& returnCompressionTime);
virtual void performDecompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnPreDecompressionSize,
unsigned long long& returnDecompressionTime);
};
#endif // _LZRW1TESTER_HH