Condividi tramite


PointerArrayMarshaller<T,TUnmanagedElement>.AllocateContainerForUnmanagedElements Metodo

Definizione

Alloca memoria per la rappresentazione non gestita della matrice.

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>

Parametri

managed
T*[]

Matrice gestita da effettuare il marshalling.

numElements
Int32

Conteggio degli elementi non gestiti.

Restituisce

TUnmanagedElement*

Puntatore non gestito alla memoria allocata.

Si applica a