Files
easy7zip/7zip/Archive/7z/7zMethodID.h
Igor Pavlov 8c1b5c7b7e 3.13
2016-05-28 00:15:41 +01:00

39 lines
670 B
C++
Executable File

// 7zMethodID.h
#pragma once
#ifndef __7Z_METHOD_ID_H
#define __7Z_METHOD_ID_H
#include "../../../Common/String.h"
namespace NArchive {
namespace N7z {
const int kMethodIDSize = 16;
struct CMethodID
{
BYTE ID[kMethodIDSize];
UINT32 IDSize;
UString ConvertToString() const;
bool ConvertFromString(const UString &srcString);
};
inline bool operator==(const CMethodID &a1, const CMethodID &a2)
{
if (a1.IDSize != a2.IDSize)
return false;
for (UINT32 i = 0; i < a1.IDSize; i++)
if (a1.ID[i] != a2.ID[i])
return false;
return true;
}
inline bool operator!=(const CMethodID &a1, const CMethodID &a2)
{ return !(a1 == a2); }
}}
#endif