Table of Contents

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 ISegment

The 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 ResourceDirectory

The 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 BinaryStreamWriter

The output stream to write the data to.