Table of Contents

Class VersionTableEntryHeader

Namespace
AsmResolver.PE.Win32Resources.Version
Assembly
AsmResolver.PE.Win32Resources.dll

Represents the raw version table entry header.

public class VersionTableEntryHeader : SegmentBase, ISegment, IOffsetProvider, IWritable
Inheritance
VersionTableEntryHeader
Implements
Inherited Members

Constructors

VersionTableEntryHeader(string)

Creates a new version table entry header with the provided key.

public VersionTableEntryHeader(string key)

Parameters

key string

The name of the resource.

VersionTableEntryHeader(ushort, ushort, VersionTableValueType, string)

Creates a new version table entry header with the provided key.

public VersionTableEntryHeader(ushort length, ushort valueLength, VersionTableValueType type, string key)

Parameters

length ushort

The length in bytes of the structure.

valueLength ushort

The size in bytes of the value member.

type VersionTableValueType

The type of data that is stored.

key string

The name of the resource.

Properties

Key

Gets or sets the key name of the resource.

public string Key { get; set; }

Property Value

string

Length

Gets or sets the raw length in bytes of the structure.

public ushort Length { get; set; }

Property Value

ushort

Type

Gets or sets a value indicating the value is binary or textual.

public VersionTableValueType Type { get; set; }

Property Value

VersionTableValueType

ValueLength

Gets or sets the raw length in bytes of the value member.

public ushort ValueLength { get; set; }

Property Value

ushort

Methods

FromReader(ref BinaryStreamReader)

Reads a single resource table header.

public static VersionTableEntryHeader FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The reader.

Returns

VersionTableEntryHeader

The table header.

GetHeaderSize(string)

Computes the size of the raw header in bytes.

public static uint GetHeaderSize(string key)

Parameters

key string

The key of the entry.

Returns

uint

The number of bytes.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of 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.