The resource directory entry represents one entry (e.g. icon) in a resource directory.
Inheritance: AbstractStructure
        public void ResourceDirectroyEntryByNameConstructorWorks_Test()
        {
            var resourceDirectroyEntry =
                new IMAGE_RESOURCE_DIRECTORY_ENTRY(RawStructures.RawResourceDirectoryEntryByName, 2, 2);

            Assert.IsTrue(resourceDirectroyEntry.IsNamedEntry);
            Assert.IsFalse(resourceDirectroyEntry.IsIdEntry);
            Assert.AreEqual(0x80332211, resourceDirectroyEntry.Name);
            Assert.AreEqual((uint) 0x55443322, resourceDirectroyEntry.OffsetToData);
        }
        private IMAGE_RESOURCE_DIRECTORY_ENTRY[] ParseDirectoryEntries(uint resourceDirOffset)
        {
            var entries = new IMAGE_RESOURCE_DIRECTORY_ENTRY[NumberOfIdEntries + NumberOfNameEntries];

            for (var index = 0; index < entries.Length; index++)
            {
                try
                {
                    entries[index] = new IMAGE_RESOURCE_DIRECTORY_ENTRY(Buff, (uint)index * 8 + Offset + 16,
                                                                        resourceDirOffset);
                }
                catch (IndexOutOfRangeException)
                {
                    entries[index] = null;
                }
            }

            return(entries);
        }
        private IMAGE_RESOURCE_DIRECTORY_ENTRY[] ParseDirectoryEntries(uint resourceDirOffset)
        {
            if (SanityCheckFailed())
                return null;

            var entries = new IMAGE_RESOURCE_DIRECTORY_ENTRY[NumberOfIdEntries + NumberOfNameEntries];

            for (var index = 0; index < entries.Length; index++)
            {
                try
                {
                    entries[index] = new IMAGE_RESOURCE_DIRECTORY_ENTRY(Buff, (uint) index*8 + Offset + 16,
                        resourceDirOffset);
                }
                catch (IndexOutOfRangeException)
                {
                    entries[index] = null;
                }
            }

            return entries;
        }