RuntimeHelpers.AllocateTypeAssociatedMemory Método

Definição

Sobrecargas

Name Description
AllocateTypeAssociatedMemory(Type, Int32)

Aloca a memória associada ao type e é libertada se e quando o Type for descarregado.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Origem:
RuntimeHelpers.CoreCLR.cs
Origem:
RuntimeHelpers.CoreCLR.cs
Origem:
RuntimeHelpers.CoreCLR.cs
Origem:
RuntimeHelpers.CoreCLR.cs
Origem:
RuntimeHelpers.CoreCLR.cs

Aloca a memória associada ao type e é libertada se e quando o Type for descarregado.

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

O tipo associado à memória alocada.

size
Int32

A quantidade de memória a alocar, em bytes.

Devoluções

IntPtr

nativeint

A memória alocada.

Aplica-se a

AllocateTypeAssociatedMemory(Type, Int32, Int32)

Origem:
RuntimeHelpers.CoreCLR.cs
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

Devoluções

IntPtr

nativeint

Aplica-se a