Udostępnij przez


RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Metoda

Definicja

Przydziela pamięć skojarzona z elementem type i jest zwalniana, jeśli i kiedy Type zostanie zwolniony.

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

Parametry

type
Type

Typ skojarzony z przydzieloną pamięcią.

size
Int32

Ilość pamięci do przydzielenia w bajtach.

Zwraca

IntPtr

nativeint

Przydzielona pamięć.

Dotyczy