mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 18:07:00 -06:00
4.27 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
31e7b924e8
commit
d66cf2fcf3
32
7zip/Compress/Rar29/Original/rawread.hpp
Executable file
32
7zip/Compress/Rar29/Original/rawread.hpp
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user