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
keystringThe 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
lengthushortThe length in bytes of the structure.
valueLengthushortThe size in bytes of the value member.
typeVersionTableValueTypeThe type of data that is stored.
keystringThe name of the resource.
Properties
Key
Gets or sets the key name of the resource.
public string Key { get; set; }
Property Value
Length
Gets or sets the raw length in bytes of the structure.
public ushort Length { get; set; }
Property Value
Type
Gets or sets a value indicating the value is binary or textual.
public VersionTableValueType Type { get; set; }
Property Value
ValueLength
Gets or sets the raw length in bytes of the value member.
public ushort ValueLength { get; set; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Reads a single resource table header.
public static VersionTableEntryHeader FromReader(ref BinaryStreamReader reader)
Parameters
readerBinaryStreamReaderThe reader.
Returns
- VersionTableEntryHeader
The table header.
GetHeaderSize(string)
Computes the size of the raw header in bytes.
public static uint GetHeaderSize(string key)
Parameters
keystringThe 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
writerBinaryStreamWriterThe output stream to write the data to.