aboutsummaryrefslogtreecommitdiff
path: root/lib/UnrarXLib/encname.hpp
blob: 586f4216f1652e37677c7d4192461ef48dcba3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _RAR_ENCNAME_
#define _RAR_ENCNAME_

class EncodeFileName
{
  private:
    void AddFlags(int Value);

    byte *EncName;
    byte Flags;
    int FlagBits;
    int FlagsPos;
    int DestSize;
  public:
    EncodeFileName();
    int Encode(char *Name,wchar *NameW,byte *EncName);
    void Decode(char *Name,byte *EncName,int EncSize,wchar *NameW,int MaxDecSize);
};

#endif