Επεξεργασία

Κοινή χρήση μέσω


ArrayMarshaller<T,TUnmanagedElement> Class

Definition

Important

This API is not CLS-compliant.

Represents a marshaller for arrays.

generic <typename T, typename TUnmanagedElement>
 where TUnmanagedElement : value classpublic ref class ArrayMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>+ManagedToUnmanagedIn))]
public static class ArrayMarshaller<T,TUnmanagedElement> where TUnmanagedElement : struct
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>+ManagedToUnmanagedIn))>]
type ArrayMarshaller<'T, 'UnmanagedElement (requires 'UnmanagedElement : struct)> = class
Public Class ArrayMarshaller(Of T, TUnmanagedElement)

Type Parameters

T

The array element type.

TUnmanagedElement

The unmanaged type for the element type.

Inheritance
ArrayMarshaller<T,TUnmanagedElement>
Attributes

Methods

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Allocates memory for the managed representation of the array.

AllocateContainerForUnmanagedElements(T[], Int32)

Allocates memory for the unmanaged representation of the array.

Free(TUnmanagedElement*)

Frees memory for the unmanaged array.

GetManagedValuesDestination(T[])

Gets a destination for the managed elements in the array.

GetManagedValuesSource(T[])

Gets a source for the managed elements in the array.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Gets a destination for the unmanaged elements in the array.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Gets a source for the unmanaged elements in the array.

Applies to