[This is preliminary documentation and is subject to change.]
Attempts to allocate (unmanaged) memory from MPI. This memory must be manually freed with a call to MPI_Free_mem(IntPtr).Namespace: MPI
Assembly: MPI (in MPI.dll)
Version: 0.8.0.0 (0.8.0.0)
|Visual Basic (Declaration)|
Public Shared Function MPI_Alloc_mem ( _ size As IntPtr, _ info As Integer, _ <OutAttribute> ByRef baseptr As IntPtr _ ) As Integer
public: static int MPI_Alloc_mem( IntPtr size, int info, [OutAttribute] IntPtr% baseptr )
- Type: System..::.IntPtr
The number of bytes to allocate.
- Type: System..::.Int32
Provides extra information to the MPI implementation that may help it allocate memory for a specific reason or from a specific memory pool.
Will receive a pointer to the newly-allocated memory.