Бөлісу құралы:


RuntimeHelpers.AllocateTypeAssociatedMemory Метод

Определение

Перегрузки

Имя Описание
AllocateTypeAssociatedMemory(Type, Int32)

Выделяет память, связанную с type. Память освобождается, если и когда Type выгружается.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Исходный код:
RuntimeHelpers.CoreCLR.cs
Исходный код:
RuntimeHelpers.CoreCLR.cs
Исходный код:
RuntimeHelpers.CoreCLR.cs
Исходный код:
RuntimeHelpers.CoreCLR.cs

Выделяет память, связанную с type. Память освобождается, если и когда 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

Параметры

type
Type

Тип, связанный с выделенной памятью.

size
Int32

Размер выделяемой памяти в байтах.

Возвращаемое значение

IntPtr

nativeint

Выделенная память.

Применяется к

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

Параметры

type
Type
size
Int32
alignment
Int32

Возвращаемое значение

IntPtr

nativeint

Применяется к