/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. using System;
  11. using RVA = System.UInt32;
  12. namespace Mono.Cecil.PE {
  13. struct DataDirectory {
  14. public readonly RVA VirtualAddress;
  15. public readonly uint Size;
  16. public bool IsZero {
  17. get { return VirtualAddress == 0 && Size == 0; }
  18. }
  19. public DataDirectory (RVA rva, uint size)
  20. {
  21. this.VirtualAddress = rva;
  22. this.Size = size;
  23. }
  24. }
  25. }