RuntimeHelpers.AllocateTypeAssociatedMemory Metod

Definition

Överlagringar

Name Description
AllocateTypeAssociatedMemory(Type, Int32)

Allokerar minne som är associerat med type och frigörs om och när tas Type bort.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Källa:
RuntimeHelpers.CoreCLR.cs
Källa:
RuntimeHelpers.CoreCLR.cs
Källa:
RuntimeHelpers.CoreCLR.cs
Källa:
RuntimeHelpers.CoreCLR.cs
Källa:
RuntimeHelpers.CoreCLR.cs

Allokerar minne som är associerat med type och frigörs om och när tas Type bort.

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

Parametrar

type
Type

Den typ som är associerad med det allokerade minnet.

size
Int32

Mängden minne som ska allokeras i byte.

Returer

IntPtr

nativeint

Det allokerade minnet.

Gäller för

AllocateTypeAssociatedMemory(Type, Int32, Int32)

Källa:
RuntimeHelpers.CoreCLR.cs
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

Parametrar

type
Type
size
Int32
alignment
Int32

Returer

IntPtr

nativeint

Gäller för