RuntimeHelpers.AllocateTypeAssociatedMemory Metódus

Definíció

Túlterhelések

Name Description
AllocateTypeAssociatedMemory(Type, Int32)

Lefoglalja a hozzá társított type memóriát, és felszabadítja, ha és amikor a rendszer kiüríti a Type memóriát.

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Forrás:
RuntimeHelpers.CoreCLR.cs
Forrás:
RuntimeHelpers.CoreCLR.cs
Forrás:
RuntimeHelpers.CoreCLR.cs
Forrás:
RuntimeHelpers.CoreCLR.cs
Forrás:
RuntimeHelpers.CoreCLR.cs

Lefoglalja a hozzá társított type memóriát, és felszabadítja, ha és amikor a rendszer kiüríti a Type memóriát.

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

Paraméterek

type
Type

A lefoglalt memóriához társított típus.

size
Int32

A lefoglalni kívánt memória mennyisége bájtban.

Válaszok

IntPtr

nativeint

A lefoglalt memória.

A következőre érvényes:

AllocateTypeAssociatedMemory(Type, Int32, Int32)

Forrás:
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

Paraméterek

type
Type
size
Int32
alignment
Int32

Válaszok

IntPtr

nativeint

A következőre érvényes: