ArrayMarshaller<T,TUnmanagedElement> Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Reprezentuje marshaller dla tablic.

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 elementu tablicy.

TUnmanagedElement

Niezarządzany typ elementu.

Dziedziczenie
ArrayMarshaller<T,TUnmanagedElement>
Atrybuty

Metody

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Przydziela pamięć dla zarządzanej reprezentacji tablicy.

AllocateContainerForUnmanagedElements(T[], Int32)

Przydziela pamięć dla niezarządzanej reprezentacji tablicy.

Free(TUnmanagedElement*)

Zwalnia pamięć dla tablicy niezarządzanej.

GetManagedValuesDestination(T[])

Pobiera miejsce docelowe elementów zarządzanych w tablicy.

GetManagedValuesSource(T[])

Pobiera źródło elementów zarządzanych w tablicy.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Pobiera miejsce docelowe dla niezarządzanych elementów w tablicy.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Pobiera źródło dla niezarządzanych elementów w tablicy.

Dotyczy