Table of Contents

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 int

The fixed size of the array.

FixedArrayMarshalDescriptor(int, NativeType)

Creates a new instance of the FixedArrayMarshalDescriptor class.

public FixedArrayMarshalDescriptor(int size, NativeType arrayElementType)

Parameters

size int

The fixed size of the array.

arrayElementType NativeType

The 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?

NativeType

Gets the native type of the marshal descriptor. This is the byte any descriptor starts with.

public override NativeType NativeType { get; }

Property Value

NativeType

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 BinaryStreamReader

The 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