7zmethodid.h

来自「7-Zip 3.11的源码」· C头文件 代码 · 共 39 行

H
39
字号
// 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?