diff options
Diffstat (limited to 'unrar/unrar/rawread.hpp')
| -rw-r--r-- | unrar/unrar/rawread.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/unrar/unrar/rawread.hpp b/unrar/unrar/rawread.hpp new file mode 100644 index 0000000..47c2bbc --- /dev/null +++ b/unrar/unrar/rawread.hpp @@ -0,0 +1,32 @@ +#ifndef _RAR_RAWREAD_ +#define _RAR_RAWREAD_ + +class RawRead +{ + private: + Array<byte> Data; + File *SrcFile; + int DataSize; + int ReadPos; +#ifndef SHELL_EXT + CryptData *Crypt; +#endif + public: + RawRead(File *SrcFile); + void Read(int Size); + void Read(byte *SrcData,int Size); + void Get(byte &Field); + void Get(ushort &Field); + void Get(uint &Field); + void Get8(Int64 &Field); + void Get(byte *Field,int Size); + void Get(wchar *Field,int Size); + uint GetCRC(bool ProcessedOnly); + int Size() {return DataSize;} + int PaddedSize() {return Data.Size()-DataSize;} +#ifndef SHELL_EXT + void SetCrypt(CryptData *Crypt) {RawRead::Crypt=Crypt;} +#endif +}; + +#endif |
