/// <summary> /// Adds a resource directory and all its sub entries to the buffer. /// </summary> /// <param name="directory">The directory to ad..</param> public void AddDirectory(IResourceDirectory directory) { DirectoryTable.AddEntry(directory); if (directory.Name != null) { NameTable.AddEntry(directory.Name); } foreach (var entry in directory.Entries) { AddEntry(entry); } }