Επεξεργασία

Κοινοποίηση μέσω


RuntimeHelpers.AllocateTypeAssociatedMemory Method

Definition

Overloads

Name Description
AllocateTypeAssociatedMemory(Type, Int32)

Allocates memory that's associated with the type and is freed if and when the Type is unloaded.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs

Allocates memory that's associated with the type and is freed if and when the Type is unloaded.

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

Parameters

type
Type

The type associated with the allocated memory.

size
Int32

The amount of memory to allocate, in bytes.

Returns

IntPtr

nativeint

The allocated memory.

Applies to

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

Parameters

type
Type
size
Int32
alignment
Int32

Returns

IntPtr

nativeint

Applies to