Class FixedArrayMarshalDescriptor
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a description for a marshaller that marshals a value as a fixed-length array.
public class FixedArrayMarshalDescriptor : MarshalDescriptor
- Inheritance
-
FixedArrayMarshalDescriptor
- Inherited Members
Constructors
FixedArrayMarshalDescriptor()
Creates a new instance of the FixedArrayMarshalDescriptor class.
public FixedArrayMarshalDescriptor()
FixedArrayMarshalDescriptor(int)
Creates a new instance of the FixedArrayMarshalDescriptor class.
public FixedArrayMarshalDescriptor(int size)
Parameters
size
intThe fixed size of the array.
FixedArrayMarshalDescriptor(int, NativeType)
Creates a new instance of the FixedArrayMarshalDescriptor class.
public FixedArrayMarshalDescriptor(int size, NativeType arrayElementType)
Parameters
size
intThe fixed size of the array.
arrayElementType
NativeTypeThe type each element in the array should be marshalled as.
Properties
ArrayElementType
Gets or sets the type each element in the array should be marshalled as.
public NativeType? ArrayElementType { get; set; }
Property Value
NativeType
Gets the native type of the marshal descriptor. This is the byte any descriptor starts with.
public override NativeType NativeType { get; }
Property Value
Size
Gets or sets the fixed size of the array.
public int? Size { get; set; }
Property Value
- int?
Methods
FromReader(ref BinaryStreamReader)
Reads a single fixed array marshal descriptor from the provided input stream.
public static FixedArrayMarshalDescriptor FromReader(ref BinaryStreamReader reader)
Parameters
reader
BinaryStreamReaderThe input stream.
Returns
- FixedArrayMarshalDescriptor
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