RuntimeHelpers.AllocateTypeAssociatedMemory Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| Имя | Описание |
|---|---|
| AllocateTypeAssociatedMemory(Type, Int32) |
Выделяет память, связанную с |
| 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
Размер выделяемой памяти в байтах.
Возвращаемое значение
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
Возвращаемое значение
nativeint