Condividi tramite


RuntimeHelpers.AllocateTypeAssociatedMemory Metodo

Definizione

Overload

Nome Descrizione
AllocateTypeAssociatedMemory(Type, Int32)

Alloca la memoria associata a type e viene liberata se e quando Type viene scaricato.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Origine:
RuntimeHelpers.CoreCLR.cs
Origine:
RuntimeHelpers.CoreCLR.cs
Origine:
RuntimeHelpers.CoreCLR.cs
Origine:
RuntimeHelpers.CoreCLR.cs

Alloca la memoria associata a type e viene liberata se e quando Type viene scaricato.

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

Parametri

type
Type

Tipo associato alla memoria allocata.

size
Int32

Quantità di memoria da allocare, in byte.

Restituisce

IntPtr

nativeint

Memoria allocata.

Si applica 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

Parametri

type
Type
size
Int32
alignment
Int32

Restituisce

IntPtr

nativeint

Si applica a