本文整理汇总了C#中System.IO.ReadUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# IO.ReadUInt32方法的具体用法?C# IO.ReadUInt32怎么用?C# IO.ReadUInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO
的用法示例。
在下文中一共展示了IO.ReadUInt32方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetArchType
//.........这里部分代码省略.........
throw new ArgumentException("spr0 header size mismatch!");
#endif
fileCount = 0;
ms.Position = prevPos;
if (br.ReadInt32() == 0)
if (br.ReadInt32() - len - 0x4 < 0x40)
if (br.ReadInt32() == 0x31444D50) //pmd1
if (br.ReadInt32() == 0)
{
fileCount = br.ReadInt32();
if (br.ReadInt32() == 0x3)
return 4;
#if DEBUG
else
throw new ArgumentException("pmd1 flag mismatch!");
#endif
}
fileCount = 0;
ms.Position = prevPos;
if (br.ReadInt32() == 0x9)
if (br.ReadInt32() - len - 0x4 < 0x40)
if (br.ReadInt32() == 0x30505854) //txp0
if (br.ReadInt32() == 0)
{
fileCount = br.ReadInt32();
return 5;
}
fileCount = 0;
ms.Position = prevPos;
if (br.ReadInt32() == 1)
{
br.ReadInt32();
if (br.ReadInt32() == 0x30424950) //pib0
if (br.ReadInt32() == 0)
return 6;
}
if (len > 0x80)
{
fileCount = 0; //epl
ms.Position = prevPos + 0x44;
tru = (br.ReadInt32() & 0x40a00000) == 0x40a00000;
ms.Position += 0x4;
tru &= br.ReadInt32() == 0x3f800000;
ms.Position += 0xc;
tru &= br.ReadInt32() == 0x3f800000;
ms.Position += 0x28;
tru &= br.ReadInt32() == 0x90;
if (tru)
return 7;
}
fileCount = 0; //rmd
ms.Position = prevPos;
if (br.ReadUInt32() == 0xf0f000f0)
{
if (br.ReadInt32() == 0x2)
if (br.ReadInt32() == 0x40000000)
return 7;
}
else
{
ms.Position = prevPos;
tru = br.ReadInt32() == 0x16;
ms.Position += 0x8;
tru &= br.ReadInt32() == 1;
i = br.ReadInt32();
if ((i > -1) && ((i + ms.Position + 0x4) < lastPos))
{
ms.Position += 0x4 + i;
if (ms.Position < lastPos)
tru &= br.ReadInt32() == 0x15;
else
tru = false;
if (tru)
return 7;
}
}
fileCount = 0;
ms.Position = prevPos;
if (br.ReadInt32() == 0x34444542) //bed4
if (br.ReadInt32() == 0x3030)
{
br.ReadInt32();
if (br.ReadInt32() == 0)
return 7;
}
fileCount = 0;
ms.Position = prevPos;
if (br.ReadInt32() == 0x004E4943)
if (br.ReadInt32() == 1)
return 8;
return 0;
}