Share via


ArrayMarshaller<T,TUnmanagedElement> 類別

定義

重要

此 API 不符合 CLS 規範。

表示陣列的封送處理器。

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)

類型參數

T

陣列項目類型。

TUnmanagedElement

項目類型的 Unmanaged 型別。

繼承
ArrayMarshaller<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 元素的來源。

適用於