Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.ExtLibs/HeuristicLab.Cecil/0.9.5/Mono.Cecil-0.9.5/Symbols/Mono.Cecil.Pdb/Microsoft.Cci.Pdb/DbiSecCon.cs @ 13825

Last change on this file since 13825 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 1.3 KB
Line 
1//-----------------------------------------------------------------------------
2//
3// Copyright (C) Microsoft Corporation.  All Rights Reserved.
4//
5//-----------------------------------------------------------------------------
6using System;
7
8namespace 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}
Note: See TracBrowser for help on using the repository browser.