Class VTableFixup
- Namespace
- AsmResolver.PE.DotNet.VTableFixups
- Assembly
- AsmResolver.PE.dll
Represents a VTable declared by the VTable fixups directory.
public class VTableFixup : SegmentBase, ISegment, IOffsetProvider, IWritable
- Inheritance
-
VTableFixup
- Implements
- Inherited Members
Constructors
VTableFixup(VTableType)
Creates a new VTable fixup.
public VTableFixup(VTableType type)
Parameters
type
VTableType
Properties
Tokens
Gets a list of the tokens added to this vtable.
public VTableTokenCollection Tokens { get; }
Property Value
Methods
FromReader(PEReaderContext, ref BinaryStreamReader)
Reads a single vtable from the provided input stream.
public static VTableFixup? FromReader(PEReaderContext context, ref BinaryStreamReader reader)
Parameters
context
PEReaderContextThe reader context.
reader
BinaryStreamReaderThe input stream.
Returns
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
writer
BinaryStreamWriterThe output stream to write the data to.