Class VarTable
- Namespace
- AsmResolver.PE.Win32Resources.Version
- Assembly
- AsmResolver.PE.Win32Resources.dll
Represents the organization of data in a file-version resource. It typically contains a list of language and code page identifier pairs that the version of the application or DLL supports.
public class VarTable : VersionTableEntry, ISegment, IOffsetProvider, IWritable
- Inheritance
-
VarTable
- Implements
- Inherited Members
Constructors
VarTable()
public VarTable()
Fields
TranslationKey
The name of the Var entry.
public const string TranslationKey = "Translation"
Field Value
Properties
Key
Gets the name of the table.
public override string Key { get; }
Property Value
ValueType
Gets the value type of the table.
protected override VersionTableValueType ValueType { get; }
Property Value
Values
Gets a collection of one or more values that are language and code page identifier pairs.
public IList<uint> Values { get; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Reads a single Var table at the provided input stream.
public static VarTable FromReader(ref BinaryStreamReader reader)
Parameters
readerBinaryStreamReaderThe input stream.
Returns
- VarTable
The var table.
Exceptions
- FormatException
Occurs when the input stream does not point to a valid Var table structure.
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
writerBinaryStreamWriterThe output stream.