Files
Aerofoil/unpacktool/CompactProRLEDecompressor.h
Diomendius 5c74c96771 Add unpacktool to CMake, port to *nix
- Adds missing includes, removes some unused ones.
- Removes unused Windows.h and shellapi.h includes.
- Uses / as path separator. This is portable and should still work fine
  on Windows.
2024-08-06 01:28:44 +12:00

23 lines
424 B
C++

#pragma once
#include <cstdint>
#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);
};