PointerArrayMarshaller<T,TUnmanagedElement> 類別

定義

重要

此 API 不符合 CLS 規範。

表示指標陣列的封送處理器。

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)

類型參數

T

陣列元素指標類型。

TUnmanagedElement

專案指標類型的 Unmanaged 型別。

繼承
PointerArrayMarshaller<T,TUnmanagedElement>
屬性

方法

AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

為數組的 Managed 表示配置記憶體。

AllocateContainerForUnmanagedElements(T*[], Int32)

為數組的 Unmanaged 表示配置記憶體。

Free(TUnmanagedElement*)

釋放 Unmanaged 陣列的記憶體。

GetManagedValuesDestination(T*[])

取得陣列中 Managed 專案的目的地。

GetManagedValuesSource(T*[])

取得陣列中 Managed 元素的來源。

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

取得陣列中 Unmanaged 專案的目的地。

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

取得陣列中 Unmanaged 元素的來源。

適用於