~ubuntu-branches/ubuntu/trusty/unrar-nonfree/trusty

1 by Chris Anderson
Import upstream version 3.3.6
1
#ifndef _RAR_RAWREAD_
2
#define _RAR_RAWREAD_
3
4
class RawRead
5
{
6
  private:
7
    Array<byte> Data;
8
    File *SrcFile;
1.2.4 by Martin Meredith
Import upstream version 3.9.3
9
    size_t DataSize;
10
    size_t ReadPos;
1 by Chris Anderson
Import upstream version 3.3.6
11
#ifndef SHELL_EXT
12
    CryptData *Crypt;
13
#endif
14
  public:
15
    RawRead(File *SrcFile);
1.2.4 by Martin Meredith
Import upstream version 3.9.3
16
    void Read(size_t Size);
17
    void Read(byte *SrcData,size_t Size);
1 by Chris Anderson
Import upstream version 3.3.6
18
    void Get(byte &Field);
19
    void Get(ushort &Field);
20
    void Get(uint &Field);
1.2.4 by Martin Meredith
Import upstream version 3.9.3
21
    void Get8(int64 &Field);
22
    void Get(byte *Field,size_t Size);
23
    void Get(wchar *Field,size_t Size);
1 by Chris Anderson
Import upstream version 3.3.6
24
    uint GetCRC(bool ProcessedOnly);
1.2.4 by Martin Meredith
Import upstream version 3.9.3
25
    size_t Size() {return DataSize;}
26
    size_t PaddedSize() {return Data.Size()-DataSize;}
1 by Chris Anderson
Import upstream version 3.3.6
27
#ifndef SHELL_EXT
28
    void SetCrypt(CryptData *Crypt) {RawRead::Crypt=Crypt;}
29
#endif
30
};
31
32
#endif