ClamAV is an open source (GPLv2) anti-virus toolkit.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
clamav/libclamunrar/arcmem.hpp

22 lines
437 B

#ifndef _RAR_ARCMEM_
#define _RAR_ARCMEM_
// 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);
};
#endif