RuntimeHelpers.AllocateTypeAssociatedMemory Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| AllocateTypeAssociatedMemory(Type, Int32) |
Asigna la memoria que está asociada al parámetro |
| AllocateTypeAssociatedMemory(Type, Int32, Int32) |
AllocateTypeAssociatedMemory(Type, Int32)
- Source:
- RuntimeHelpers.CoreCLR.cs
- Source:
- RuntimeHelpers.CoreCLR.cs
- Source:
- RuntimeHelpers.CoreCLR.cs
- Source:
- RuntimeHelpers.CoreCLR.cs
Asigna la memoria que está asociada al parámetro type y se libera siempre que se descargue Type.
public:
static IntPtr AllocateTypeAssociatedMemory(Type ^ type, int size);
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size);
static member AllocateTypeAssociatedMemory : Type * int -> nativeint
Public Shared Function AllocateTypeAssociatedMemory (type As Type, size As Integer) As IntPtr
Parámetros
- type
- Type
Tipo asociado a la memoria asignada.
- size
- Int32
Cantidad de memoria que se va a asignar, en bytes.
Devoluciones
nativeint
Memoria asignada.
Se aplica a
AllocateTypeAssociatedMemory(Type, Int32, Int32)
public:
static IntPtr AllocateTypeAssociatedMemory(Type ^ type, int size, int alignment);
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size, int alignment);
static member AllocateTypeAssociatedMemory : Type * int * int -> nativeint
Public Shared Function AllocateTypeAssociatedMemory (type As Type, size As Integer, alignment As Integer) As IntPtr
Parámetros
- type
- Type
- size
- Int32
- alignment
- Int32
Devoluciones
nativeint