Compartir a través de


ArrayMarshaller<T,TUnmanagedElement> Clase

Definición

Importante

Esta API no es conforme a CLS.

Representa un serializador para matrices.

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)

Parámetros de tipo

T

Tipo de elemento de matriz.

TUnmanagedElement

Tipo no administrado para el tipo de elemento.

Herencia
ArrayMarshaller<T,TUnmanagedElement>
Atributos

Métodos

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Asigna memoria para la representación administrada de la matriz.

AllocateContainerForUnmanagedElements(T[], Int32)

Asigna memoria para la representación no administrada de la matriz.

Free(TUnmanagedElement*)

Libera memoria para la matriz no administrada.

GetManagedValuesDestination(T[])

Obtiene un destino para los elementos administrados de la matriz.

GetManagedValuesSource(T[])

Obtiene un origen para los elementos administrados de la matriz.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Obtiene un destino para los elementos no administrados de la matriz.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Obtiene un origen para los elementos no administrados de la matriz.

Se aplica a