ArrayMarshaller<T,TUnmanagedElement> Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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 elementu.
- Dědičnost
-
ArrayMarshaller<T,TUnmanagedElement>
- Atributy
Metody
| Name | Description |
|---|---|
| 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é prvky v poli. |
| GetManagedValuesSource(T[]) |
Získá zdroj pro spravované prvky 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. |