Initial compresison.
This commit is contained in:
parent
4fce4fc614
commit
1ee31596fb
11 changed files with 195 additions and 1 deletions
14
test/compression/TestStreamCompressor.cpp
Normal file
14
test/compression/TestStreamCompressor.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "HuffmanEncoder.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
std::string testData = "BCAADDDCCACACAC";
|
||||
std::vector<unsigned char> stream(testData.begin(), testData.end());
|
||||
|
||||
HuffmanEncoder encoder;
|
||||
encoder.encode(stream);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue