PointerArrayMarshaller<T,TUnmanagedElement> Classe

Definição

Importante

Esta API não está em conformidade com CLS.

Representa um marshaller para uma matriz de ponteiros.

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)

Parâmetros de tipo

T

O tipo de ponteiro do elemento de matriz.

TUnmanagedElement

O tipo não gerenciado para o tipo de ponteiro do elemento.

Herança
PointerArrayMarshaller<T,TUnmanagedElement>
Atributos

Métodos

Nome Description
AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Aloca memória para a representação gerenciada da matriz.

AllocateContainerForUnmanagedElements(T*[], Int32)

Aloca memória para a representação não gerenciada da matriz.

Free(TUnmanagedElement*)

Libera memória para a matriz não gerenciada.

GetManagedValuesDestination(T*[])

Obtém um destino para os elementos gerenciados na matriz.

GetManagedValuesSource(T*[])

Obtém uma fonte para os elementos gerenciados na matriz.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Obtém um destino para os elementos não gerenciados na matriz.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Obtém uma fonte para os elementos não gerenciados na matriz.

Aplica-se a