2009-11-10 16:48:42 +01:00
|
|
|
#ifndef _RAR_ENCNAME_
|
|
|
|
#define _RAR_ENCNAME_
|
|
|
|
|
|
|
|
class EncodeFileName
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
void AddFlags(int Value);
|
|
|
|
|
|
|
|
byte *EncName;
|
|
|
|
byte Flags;
|
|
|
|
uint FlagBits;
|
|
|
|
size_t FlagsPos;
|
|
|
|
size_t DestSize;
|
|
|
|
public:
|
|
|
|
EncodeFileName();
|
|
|
|
size_t Encode(char *Name,wchar *NameW,byte *EncName);
|
2020-07-15 00:40:26 +02:00
|
|
|
void Decode(char *Name,size_t NameSize,byte *EncName,size_t EncSize,wchar *NameW,size_t MaxDecSize);
|
2009-11-10 16:48:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|