mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 22:06:59 -06:00
39 lines
670 B
C++
Executable File
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
|