PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Mono.Cecil.PE/DataDirectory.cs

http://github.com/jbevain/cecil
C# | 32 lines | 16 code | 7 blank | 9 comment | 3 complexity | 8d94473b6302d8580ad72202fca05819 MD5 | raw file
 1//
 2// Author:
 3//   Jb Evain (jbevain@gmail.com)
 4//
 5// Copyright (c) 2008 - 2015 Jb Evain
 6// Copyright (c) 2008 - 2011 Novell, Inc.
 7//
 8// Licensed under the MIT/X11 license.
 9//
10
11using System;
12
13using RVA = System.UInt32;
14
15namespace Mono.Cecil.PE {
16
17	struct DataDirectory {
18
19		public readonly RVA VirtualAddress;
20		public readonly uint Size;
21
22		public bool IsZero {
23			get { return VirtualAddress == 0 && Size == 0; }
24		}
25
26		public DataDirectory (RVA rva, uint size)
27		{
28			this.VirtualAddress = rva;
29			this.Size = size;
30		}
31	}
32}