PointerArrayMarshaller<T,TUnmanagedElement> Kelas

Definisi

Penting

API ini bukan kompatibel CLS.

Mewakili marshaller untuk array pointer.

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)

Jenis parameter

T

Jenis penunjuk elemen array.

TUnmanagedElement

Jenis yang tidak dikelola untuk jenis penunjuk elemen.

Warisan
PointerArrayMarshaller<T,TUnmanagedElement>
Atribut

Metode

Nama Deskripsi
AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Mengalokasikan memori untuk representasi array terkelola.

AllocateContainerForUnmanagedElements(T*[], Int32)

Mengalokasikan memori untuk representasi array yang tidak dikelola.

Free(TUnmanagedElement*)

Membebaskan memori untuk array yang tidak dikelola.

GetManagedValuesDestination(T*[])

Mendapatkan tujuan untuk elemen terkelola dalam array.

GetManagedValuesSource(T*[])

Mendapatkan sumber untuk elemen terkelola dalam array.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Mendapatkan tujuan untuk elemen yang tidak dikelola dalam array.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Mendapatkan sumber untuk elemen yang tidak dikelola dalam array.

Berlaku untuk