次の方法で共有


PointerArrayMarshaller<T,TUnmanagedElement>.AllocateContainerForUnmanagedElements メソッド

定義

配列のアンマネージ表現にメモリを割り当てます。

public:
 static TUnmanagedElement* AllocateContainerForUnmanagedElements(cli::array <T*> ^ managed, [Runtime::InteropServices::Out] int % numElements);
public static TUnmanagedElement* AllocateContainerForUnmanagedElements (T*[]? managed, out int numElements);
static member AllocateContainerForUnmanagedElements : nativeptr<'T>[] * int -> nativeptr<'UnmanagedElement>

パラメーター

managed
T*[]

マーシャリングするマネージド配列。

numElements
Int32

アンマネージド要素の数。

戻り値

TUnmanagedElement*

割り当てられたメモリへのアンマネージ ポインター。

適用対象