SpanMarshaller<T,TUnmanagedElement>.AllocateContainerForUnmanagedElements Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Alloue l’espace pour stocker les éléments non managés.
public:
static TUnmanagedElement* AllocateContainerForUnmanagedElements(Span<T> managed, [Runtime::InteropServices::Out] int % numElements);
public static TUnmanagedElement* AllocateContainerForUnmanagedElements (Span<T> managed, out int numElements);
static member AllocateContainerForUnmanagedElements : Span<'T> * int -> nativeptr<'UnmanagedElement>
Paramètres
- managed
- Span<T>
Étendue managée.
- numElements
- Int32
Nombre d’éléments dans l’étendue.
Retours
Pointeur vers le bloc de mémoire pour les éléments non managés.