PointerArrayMarshaller<T,TUnmanagedElement> Klasse

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Stellt einen Marshaller für ein Array von Zeigern dar.

generic <typename T, typename TUnmanagedElement>
 where T : value class where TUnmanagedElement : value classpublic ref class PointerArrayMarshaller 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.PointerArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))]
public static class PointerArrayMarshaller<T,TUnmanagedElement> where T : struct 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.PointerArrayMarshaller<,>))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))>]
type PointerArrayMarshaller<'T, 'UnmanagedElement (requires 'T : struct and 'UnmanagedElement : struct)> = class
Public Class PointerArrayMarshaller(Of T, TUnmanagedElement)

Typparameter

T

Der Zeigertyp des Arrayelements.

TUnmanagedElement

Der nicht verwaltete Typ für den Elementzeigertyp.

Vererbung
PointerArrayMarshaller<T,TUnmanagedElement>
Attribute

Methoden

Name Beschreibung
AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Weist Speicher für die verwaltete Darstellung des Arrays zu.

AllocateContainerForUnmanagedElements(T*[], Int32)

Weist Speicher für die nicht verwaltete Darstellung des Arrays zu.

Free(TUnmanagedElement*)

Gibt Arbeitsspeicher für das nicht verwaltete Array frei.

GetManagedValuesDestination(T*[])

Ruft ein Ziel für die verwalteten Elemente im Array ab.

GetManagedValuesSource(T*[])

Ruft eine Quelle für die verwalteten Elemente im Array ab.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Ruft ein Ziel für die nicht verwalteten Elemente im Array ab.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Ruft eine Quelle für die nicht verwalteten Elemente im Array ab.

Gilt für: