Condividi tramite


ArrayMarshaller<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 : 'T[] * int -> nativeptr<'UnmanagedElement>

Parametri

managed
T[]

Matrice gestita.

numElements
Int32

Numero di elementi non gestiti.

Restituisce

TUnmanagedElement*

Puntatore non gestito alla memoria allocata.

Si applica a