[msvc] Update csproj files (#4284)
[mono.git] / mcs / tools / pdb2mdb / DbiSecCon.cs
1 //-----------------------------------------------------------------------------
2 //
3 // Copyright (C) Microsoft Corporation.  All Rights Reserved.
4 //
5 //-----------------------------------------------------------------------------
6 using System;
7
8 namespace Microsoft.Cci.Pdb {
9   internal struct DbiSecCon {
10     internal DbiSecCon(BitAccess bits) {
11       bits.ReadInt16(out section);
12       bits.ReadInt16(out pad1);
13       bits.ReadInt32(out offset);
14       bits.ReadInt32(out size);
15       bits.ReadUInt32(out flags);
16       bits.ReadInt16(out module);
17       bits.ReadInt16(out pad2);
18       bits.ReadUInt32(out dataCrc);
19       bits.ReadUInt32(out relocCrc);
20       //if (pad1 != 0 || pad2 != 0) {
21       //  throw new PdbException("Invalid DBI section. "+
22       //                                 "(pad1={0}, pad2={1})",
23       //                         pad1, pad2);
24       //}
25     }
26
27     internal short section;                    // 0..1
28     internal short pad1;                       // 2..3
29     internal int offset;                     // 4..7
30     internal int size;                       // 8..11
31     internal uint flags;                      // 12..15
32     internal short module;                     // 16..17
33     internal short pad2;                       // 18..19
34     internal uint dataCrc;                    // 20..23
35     internal uint relocCrc;                   // 24..27
36   }
37 }