Share via


ArrayMarshaller<T,TUnmanagedElement> Classe

Définition

Important

Cette API n’est pas conforme CLS.

Représente un marshaleur pour les tableaux.

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)

Paramètres de type

T

Type d’élément array.

TUnmanagedElement

Type non managé pour le type d’élément.

Héritage
ArrayMarshaller<T,TUnmanagedElement>
Attributs

Méthodes

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Alloue de la mémoire pour la représentation managée du tableau.

AllocateContainerForUnmanagedElements(T[], Int32)

Alloue de la mémoire pour la représentation non managée du tableau.

Free(TUnmanagedElement*)

Libère de la mémoire pour le tableau non managé.

GetManagedValuesDestination(T[])

Obtient une destination pour les éléments managés dans le tableau.

GetManagedValuesSource(T[])

Obtient une source pour les éléments managés dans le tableau.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Obtient une destination pour les éléments non managés dans le tableau.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Obtient une source pour les éléments non managés dans le tableau.

S’applique à