/symbols/pdb/Microsoft.Cci.Pdb/DbiSecCon.cs
C# | 35 lines | 25 code | 3 blank | 7 comment | 0 complexity | 333c3fee453d3e702524429de7a44512 MD5 | raw file
1// Copyright (c) Microsoft. All rights reserved. 2// Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 4using System; 5 6namespace Microsoft.Cci.Pdb { 7 internal struct DbiSecCon { 8 internal DbiSecCon(BitAccess bits) { 9 bits.ReadInt16(out section); 10 bits.ReadInt16(out pad1); 11 bits.ReadInt32(out offset); 12 bits.ReadInt32(out size); 13 bits.ReadUInt32(out flags); 14 bits.ReadInt16(out module); 15 bits.ReadInt16(out pad2); 16 bits.ReadUInt32(out dataCrc); 17 bits.ReadUInt32(out relocCrc); 18 //if (pad1 != 0 || pad2 != 0) { 19 // throw new PdbException("Invalid DBI section. "+ 20 // "(pad1={0}, pad2={1})", 21 // pad1, pad2); 22 //} 23 } 24 25 internal short section; // 0..1 26 internal short pad1; // 2..3 27 internal int offset; // 4..7 28 internal int size; // 8..11 29 internal uint flags; // 12..15 30 internal short module; // 16..17 31 internal short pad2; // 18..19 32 internal uint dataCrc; // 20..23 33 internal uint relocCrc; // 24..27 34 } 35}