Class ResourceDataTableBuffer
- Namespace
- AsmResolver.PE.Win32Resources.Builder
- Assembly
- AsmResolver.PE.dll
Provides a mechanism for building a table of data entries in a resource directory.
public class ResourceDataTableBuffer : ResourceTableBuffer<ResourceData>, ISegment, IOffsetProvider, IWritable
- Inheritance
-
ResourceDataTableBuffer
- Implements
- Inherited Members
Constructors
ResourceDataTableBuffer(ISegment)
Creates a new data table buffer.
public ResourceDataTableBuffer(ISegment parentBuffer)
Parameters
parentBuffer
ISegmentThe resource directory segment that contains the table buffer.
Methods
GetEntrySize(ResourceData)
Determines the size of a single item in the table.
public override uint GetEntrySize(ResourceData entry)
Parameters
entry
ResourceDataThe 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.