Class ResourceDirectoryTableBuffer
- Namespace
- AsmResolver.PE.Win32Resources.Builder
- Assembly
- AsmResolver.PE.dll
Provides a mechanism for building a table of directory entries in a resource directory.
public class ResourceDirectoryTableBuffer : ResourceTableBuffer<ResourceDirectory>, ISegment, IOffsetProvider, IWritable
- Inheritance
-
ResourceDirectoryTableBuffer
- Implements
- Inherited Members
Constructors
ResourceDirectoryTableBuffer(ISegment, ResourceTableBuffer<string>, ResourceTableBuffer<ResourceData>)
Creates a new resource directory table buffer.
public ResourceDirectoryTableBuffer(ISegment parentBuffer, ResourceTableBuffer<string> nameTable, ResourceTableBuffer<ResourceData> dataEntryTable)
Parameters
parentBuffer
ISegmentThe resource directory segment that contains the table buffer.
nameTable
ResourceTableBuffer<string>The table containing the names of each named entry.
dataEntryTable
ResourceTableBuffer<ResourceData>The table containing the structures of each data entry.
Methods
GetEntrySize(ResourceDirectory)
Determines the size of a single item in the table.
public override uint GetEntrySize(ResourceDirectory entry)
Parameters
entry
ResourceDirectoryThe item to measure.
Returns
- uint
The size in bytes.
Write(BinaryStreamWriter)
Serializes the structure to an output stream.
public override void Write(BinaryStreamWriter writer)
Parameters
writer
BinaryStreamWriterThe output stream to write the data to.