private void ReadHeader(BinaryReader reader)
{
uint num = reader.ReadUInt32();
if (num != 0x4eabfdd1)
{
throw new Exception(string.Format("Bad magic number: expected {0}, found {1}", 0x4eabfdd1, num));
}
int num2 = reader.ReadInt32();
string str = reader.ReadString();
if (str != "heap-shot logfile")
{
throw new Exception("Unknown file label in heap-shot outfile");
}
int num3 = 6;
if (num2 != num3)
{
throw new Exception(string.Format("Version error in {0}: expected {1}, found {2}", str, num3, num2));
}
reader.ReadUInt32();
reader.ReadUInt32();
reader.ReadUInt32();
reader.ReadUInt32();
}