RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Método
Definição
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
Parâmetros
- type
- Type
O tipo associado à memória alocada.The type associated with the allocated memory.
- size
- Int32
Quantidade de memória a ser alocada, em bytes.The amount of memory to allocate, in bytes.
Retornos
A memória alocada.The allocated memory.