File: rawread.hpp

package info (click to toggle)
unrar-nonfree 1%3A3.5.4-1.1
  • links: PTS
  • area: non-free
  • in suites: etch
  • size: 884 kB
  • ctags: 2,391
  • sloc: cpp: 16,784; makefile: 28
file content (32 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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