Sdílet prostřednictvím


ArrayMarshaller<T,TUnmanagedElement> Třída

Definice

Důležité

Toto rozhraní API neodpovídá specifikaci CLS.

Představuje marshaller pro pole.

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)

Parametry typu

T

Typ prvku pole.

TUnmanagedElement

Nespravovaný typ pro typ prvku.

Dědičnost
ArrayMarshaller<T,TUnmanagedElement>
Atributy

Metody

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Přidělí paměť pro spravovanou reprezentaci pole.

AllocateContainerForUnmanagedElements(T[], Int32)

Přidělí paměť pro nespravovanou reprezentaci pole.

Free(TUnmanagedElement*)

Uvolní paměť pro nespravované pole.

GetManagedValuesDestination(T[])

Získá cíl pro spravované elementy v poli.

GetManagedValuesSource(T[])

Získá zdroj pro spravované elementy v poli.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Získá cíl pro nespravované prvky v poli.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Získá zdroj pro nespravované prvky v poli.

Platí pro