Comparteix via


RuntimeHelpers.AllocateTypeAssociatedMemory Método

Definición

Sobrecargas

Nombre Description
AllocateTypeAssociatedMemory(Type, Int32)

Asigna la memoria que está asociada al parámetro type y se libera siempre que se descargue Type.

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

IntPtr

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

IntPtr

nativeint

Se aplica a