Table of Contents

Class VarFileInfo

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

Represents the organization of data in a file-version resource. It contains version information not dependent on a particular language and code page combination.

public class VarFileInfo : VersionTableEntry, ISegment, IOffsetProvider, IWritable
Inheritance
VarFileInfo
Implements
Inherited Members

Constructors

VarFileInfo()

public VarFileInfo()

Fields

VarFileInfoKey

The name of the VarFileInfo entry.

public const string VarFileInfoKey = "VarFileInfo"

Field Value

string

Properties

Key

Gets the name of the table.

public override string Key { get; }

Property Value

string

Tables

Gets a collection of tables stored in this VarFileInfo structure, typically containing a list of languages that the application or DLL supports.

public IList<VarTable> Tables { get; }

Property Value

IList<VarTable>

ValueType

Gets the value type of the table.

protected override VersionTableValueType ValueType { get; }

Property Value

VersionTableValueType

Methods

FromReader(ulong, VersionTableEntryHeader, ref BinaryStreamReader)

Reads a single VarFileInfo structure from the provided input stream.

public static VarFileInfo FromReader(ulong startOffset, VersionTableEntryHeader header, ref BinaryStreamReader reader)

Parameters

startOffset ulong

The offset of the consumed header.

header VersionTableEntryHeader

The header.

reader BinaryStreamReader

The input stream.

Returns

VarFileInfo

The read structure.

Remarks

This function assumes the provided header was already consumed.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

GetValueLength()

Gets the length of the raw value.

protected override uint GetValueLength()

Returns

uint

The raw value.

WriteValue(BinaryStreamWriter)

Writes the value field of the version structure.

protected override void WriteValue(BinaryStreamWriter writer)

Parameters

writer BinaryStreamWriter

The output stream.