Add unpacktool

This commit is contained in:
elasota
2020-05-09 21:05:58 -04:00
parent b849d23f4e
commit ebb6d7608e
65 changed files with 6419 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "IDecompressor.h"
class CompactProRLEDecompressor : public IDecompressor
{
public:
CompactProRLEDecompressor();
~CompactProRLEDecompressor();
bool Reset(CSInputBuffer *input, size_t compressedSize, size_t decompressedSize);
bool ReadBytes(void *dest, size_t numBytes);
public:
CSInputBuffer *input;
int saved, repeat;
bool halfescaped;
bool EmitOneByte(uint8_t &b);
};