Files
Aerofoil/unpacktool/CompactProRLEDecompressor.h

23 lines
424 B
C
Raw Permalink Normal View History

#pragma once
2020-05-09 21:05:58 -04:00
#include <cstdint>
2020-05-09 21:05:58 -04:00
#include "IDecompressor.h"
class CompactProRLEDecompressor : public IDecompressor
{
2020-05-09 21:05:58 -04:00
public:
CompactProRLEDecompressor();
2020-05-09 21:05:58 -04:00
~CompactProRLEDecompressor();
bool Reset(CSInputBuffer *input, size_t compressedSize, size_t decompressedSize);
2020-05-09 21:05:58 -04:00
bool ReadBytes(void *dest, size_t numBytes);
public:
CSInputBuffer *input;
int saved, repeat;
bool halfescaped;
bool EmitOneByte(uint8_t &b);
};