PointerArrayMarshaller<T,TUnmanagedElement> Classe

Définition

Important

Cette API n’est pas conforme CLS.

Représente un marshalleur pour un tableau de pointeurs.

generic <typename T, typename TUnmanagedElement>
 where T : value class where TUnmanagedElement : value classpublic ref class PointerArrayMarshaller 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.PointerArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))]
public static class PointerArrayMarshaller<T,TUnmanagedElement> where T : struct 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.PointerArrayMarshaller<,>))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))>]
type PointerArrayMarshaller<'T, 'UnmanagedElement (requires 'T : struct and 'UnmanagedElement : struct)> = class
Public Class PointerArrayMarshaller(Of T, TUnmanagedElement)

Paramètres de type

T

Type de pointeur d’élément de tableau.

TUnmanagedElement

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

Héritage
PointerArrayMarshaller<T,TUnmanagedElement>
Attributs

Méthodes

Nom Description
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 à