Class StringFileInfo
- Namespace
- AsmResolver.PE.Win32Resources.Version
- Assembly
- AsmResolver.PE.Win32Resources.dll
Represents the organization of data in a file-version resource. It contains version information that can be displayed for a particular language and code page.
public class StringFileInfo : VersionTableEntry, ISegment, IOffsetProvider, IWritable
- Inheritance
-
StringFileInfo
- Implements
- Inherited Members
Constructors
StringFileInfo()
public StringFileInfo()
Fields
StringFileInfoKey
The name of the StringFileInfo entry.
public const string StringFileInfoKey = "StringFileInfo"
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<StringTable> 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 StringFileInfo structure from the provided input stream.
public static StringFileInfo FromReader(ulong startOffset, VersionTableEntryHeader header, ref BinaryStreamReader reader)
Parameters
startOffsetulongThe offset of the consumed header.
headerVersionTableEntryHeaderThe header.
readerBinaryStreamReaderThe input stream.
Returns
- StringFileInfo
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.