internal OffsetTable() { int platform = (int)Environment.OSVersion.Platform; if (platform != 4 && platform != 128) { this.FileFlags |= OffsetTable.Flags.WindowsFileNames; } }
internal OffsetTable(BinaryReader reader, int major_version, int minor_version) { this.TotalFileSize = reader.ReadInt32(); this.DataSectionOffset = reader.ReadInt32(); this.DataSectionSize = reader.ReadInt32(); this.CompileUnitCount = reader.ReadInt32(); this.CompileUnitTableOffset = reader.ReadInt32(); this.CompileUnitTableSize = reader.ReadInt32(); this.SourceCount = reader.ReadInt32(); this.SourceTableOffset = reader.ReadInt32(); this.SourceTableSize = reader.ReadInt32(); this.MethodCount = reader.ReadInt32(); this.MethodTableOffset = reader.ReadInt32(); this.MethodTableSize = reader.ReadInt32(); this.TypeCount = reader.ReadInt32(); this.AnonymousScopeCount = reader.ReadInt32(); this.AnonymousScopeTableOffset = reader.ReadInt32(); this.AnonymousScopeTableSize = reader.ReadInt32(); this.LineNumberTable_LineBase = reader.ReadInt32(); this.LineNumberTable_LineRange = reader.ReadInt32(); this.LineNumberTable_OpcodeBase = reader.ReadInt32(); this.FileFlags = (OffsetTable.Flags)reader.ReadInt32(); }