[This is preliminary documentation and is subject to change.]
Determine the maximum amount of space that packing incount values with the
MPI datatype datatype will require. This routine is useful for allocating
buffer space when packing data with MPI_Pack(IntPtr, Int32, Int32, IntPtr, Int32, Int32%, Int32).
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 0.8.0.0 (0.8.0.0)
Syntax
| C# |
|---|
public static int MPI_Pack_size( int incount, int datatype, int comm, out int size ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function MPI_Pack_size ( _ incount As Integer, _ datatype As Integer, _ comm As Integer, _ <OutAttribute> ByRef size As Integer _ ) As Integer |
| Visual C++ |
|---|
public: static int MPI_Pack_size( int incount, int datatype, int comm, [OutAttribute] int% size ) |
Parameters
- incount
- Type: System..::.Int32
The number of elements of type datatype to be packed.
- datatype
- Type: System..::.Int32
The type of data to be packed.
- comm
- Type: System..::.Int32
The communicator over which the packed data would be transmitted.
- size
- Type:
System..::.Int32
%
A pointer to an integer. This integer will receive the maximum number of bytes required to pack the data. However, it is possible that when calling MPI_Pack(IntPtr, Int32, Int32, IntPtr, Int32, Int32%, Int32), fewer bytes will be required to pack the actual data.