Sdílet prostřednictvím


RuntimeHelpers.AllocateTypeAssociatedMemory Metoda

Definice

Přetížení

Name Description
AllocateTypeAssociatedMemory(Type, Int32)

Přidělí paměť, která je přidružena k type a je uvolněna, pokud a když Type je uvolněna.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Zdroj:
RuntimeHelpers.CoreCLR.cs
Zdroj:
RuntimeHelpers.CoreCLR.cs
Zdroj:
RuntimeHelpers.CoreCLR.cs
Zdroj:
RuntimeHelpers.CoreCLR.cs

Přidělí paměť, která je přidružena k type a je uvolněna, pokud a když Type je uvolněna.

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

Parametry

type
Type

Typ přidružený k přidělené paměti.

size
Int32

Množství paměti, které se má přidělit, v bajtech.

Návraty

IntPtr

nativeint

Přidělená paměť.

Platí pro

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

Parametry

type
Type
size
Int32
alignment
Int32

Návraty

IntPtr

nativeint

Platí pro