ArrayMarshaller<T,TUnmanagedElement> Klas
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Belangrijk
Deze API is niet CLS-conform.
Vertegenwoordigt een marshaller voor 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)
Type parameters
- T
Het type matrixelement.
- TUnmanagedElement
Het niet-beheerde type voor het elementtype.
- Overname
-
ArrayMarshaller<T,TUnmanagedElement>
- Kenmerken
Methoden
| Name | Description |
|---|---|
| AllocateContainerForManagedElements(TUnmanagedElement*, Int32) |
Wijst geheugen toe voor de beheerde weergave van de matrix. |
| AllocateContainerForUnmanagedElements(T[], Int32) |
Wijst geheugen toe voor de onbeheerde weergave van de matrix. |
| Free(TUnmanagedElement*) |
Hiermee wordt geheugen vrijgemaakt voor de onbeheerde matrix. |
| GetManagedValuesDestination(T[]) |
Hiermee haalt u een bestemming op voor de beheerde elementen in de matrix. |
| GetManagedValuesSource(T[]) |
Hiermee haalt u een bron op voor de beheerde elementen in de matrix. |
| GetUnmanagedValuesDestination(TUnmanagedElement*, Int32) |
Hiermee haalt u een bestemming op voor de niet-beheerde elementen in de matrix. |
| GetUnmanagedValuesSource(TUnmanagedElement*, Int32) |
Hiermee haalt u een bron op voor de niet-beheerde elementen in de matrix. |