Bagikan melalui


RuntimeHelpers.AllocateTypeAssociatedMemory Metode

Definisi

Overload

Nama Deskripsi
AllocateTypeAssociatedMemory(Type, Int32)

Mengalokasikan memori yang terkait dengan type dan dibebaskan jika dan ketika Type dibongkar.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Sumber:
RuntimeHelpers.CoreCLR.cs
Sumber:
RuntimeHelpers.CoreCLR.cs
Sumber:
RuntimeHelpers.CoreCLR.cs
Sumber:
RuntimeHelpers.CoreCLR.cs

Mengalokasikan memori yang terkait dengan type dan dibebaskan jika dan ketika Type dibongkar.

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

Parameter

type
Type

Jenis yang terkait dengan memori yang dialokasikan.

size
Int32

Jumlah memori yang akan dialokasikan, dalam byte.

Mengembalikan

IntPtr

nativeint

Memori yang dialokasikan.

Berlaku untuk

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

Parameter

type
Type
size
Int32
alignment
Int32

Mengembalikan

IntPtr

nativeint

Berlaku untuk