blob: b4614d4c3ec7c1604a7952504074d9ef99a04f45 [file] [log] [blame]
#ifndef _RAR_ARCMEM_
#define _RAR_ARCMEM_
namespace third_party_unrar {
// Memory interface for software fuzzers.
class ArcMemory
{
private:
bool Loaded;
Array<byte> ArcData;
uint64 SeekPos;
public:
ArcMemory();
void Load(const byte *Data,size_t Size);
bool Unload();
bool IsLoaded() {return Loaded;}
bool Read(void *Data,size_t Size,size_t &Result);
bool Seek(int64 Offset,int Method);
bool Tell(int64 *Pos);
};
} // namespace third_party_unrar
#endif