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
Properties
Key
Gets the name of the table.
public override string Key { get; }
Property Value
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
ValueType
Gets the value type of the table.
protected override VersionTableValueType ValueType { get; }
Property Value
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
startOffsetulongThe offset of the consumed header.
headerVersionTableEntryHeaderThe header.
readerBinaryStreamReaderThe 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
writerBinaryStreamWriterThe output stream.