/// <summary> /// 获取标志位的解析数据 /// </summary> public FlagsData GetFlagData() { if (_flagData == null) { BitMask32 value = Flags; bool isEncrypted = value.Test(0); bool isBuildin = value.Test(1); bool isRawFile = value.Test(2); _flagData = new FlagsData(isEncrypted, isBuildin, isRawFile); } return(_flagData); }
/// <summary> /// 解析标记位 /// </summary> public static void ParseFlags(int flags, out bool isEncrypted) { BitMask32 value = flags; isEncrypted = value.Test(0); }