Class ComInterfaceMarshalDescriptor
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a description of a marshaller that marshals a value to a COM interface object.
public class ComInterfaceMarshalDescriptor : MarshalDescriptor
- Inheritance
-
ComInterfaceMarshalDescriptor
- Inherited Members
Constructors
ComInterfaceMarshalDescriptor(NativeType)
Creates a new instance of the ComInterfaceMarshalDescriptor class.
public ComInterfaceMarshalDescriptor(NativeType nativeType)
Parameters
nativeType
NativeTypeThe type of COM interface to marshal to.
Properties
IidParameterIndex
Gets or sets the index of the parameter containing the COM IID of the interface.
public int? IidParameterIndex { get; set; }
Property Value
- int?
NativeType
Gets the native type of the marshal descriptor. This is the byte any descriptor starts with.
public override NativeType NativeType { get; }
Property Value
Methods
FromReader(NativeType, ref BinaryStreamReader)
Reads a single COM interface marshal descriptor from the provided input stream.
public static ComInterfaceMarshalDescriptor FromReader(NativeType type, ref BinaryStreamReader reader)
Parameters
type
NativeTypeThe type of COM interface marshaller to read.
reader
BinaryStreamReaderThe input stream.
Returns
- ComInterfaceMarshalDescriptor
The descriptor.
WriteContents(in BlobSerializationContext)
Serializes the blob (without extra data) to an output stream.
protected override void WriteContents(in BlobSerializationContext context)
Parameters
context
BlobSerializationContext