Share via


ArrayMarshaller<T,TUnmanagedElement> Classe

Definizione

Importante

Questa API non è conforme a CLS.

Rappresenta un marshaller per le matrici.

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)

Parametri di tipo

T

Tipo di elemento matrice.

TUnmanagedElement

Tipo non gestito per il tipo di elemento.

Ereditarietà
ArrayMarshaller<T,TUnmanagedElement>
Attributi

Metodi

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Alloca la memoria per la rappresentazione gestita della matrice.

AllocateContainerForUnmanagedElements(T[], Int32)

Alloca memoria per la rappresentazione non gestita della matrice.

Free(TUnmanagedElement*)

Libera memoria per la matrice non gestita.

GetManagedValuesDestination(T[])

Ottiene una destinazione per gli elementi gestiti nella matrice.

GetManagedValuesSource(T[])

Ottiene un'origine per gli elementi gestiti nella matrice.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Ottiene una destinazione per gli elementi non gestiti nella matrice.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Ottiene un'origine per gli elementi non gestiti nella matrice.

Si applica a