[This is preliminary documentation and is subject to change.]

Unpacks (deserializes) data from a byte buffer. The serialized representation will have been packed by MPI_Pack(IntPtr, Int32, Int32, IntPtr, Int32, Int32%, Int32) and (possibly) transmitted via MPI using the datatype MPI_PACKED. Serialization in MPI.NET is automatic, so this routine is very rarely used.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: 0.9.0.0 (0.9.0.0)

Syntax

C#
public static int MPI_Unpack(
	IntPtr inbuf,
	int insize,
	ref int position,
	IntPtr outbuf,
	int outcount,
	int datatype,
	int comm
)
Visual Basic (Declaration)
Public Shared Function MPI_Unpack ( _
	inbuf As IntPtr, _
	insize As Integer, _
	ByRef position As Integer, _
	outbuf As IntPtr, _
	outcount As Integer, _
	datatype As Integer, _
	comm As Integer _
) As Integer
Visual C++
public:
static int MPI_Unpack(
	IntPtr inbuf, 
	int insize, 
	int% position, 
	IntPtr outbuf, 
	int outcount, 
	int datatype, 
	int comm
)

Parameters

inbuf
Type: System..::.IntPtr
A pointer to the buffer of bytes that will be unpacked.
insize
Type: System..::.Int32
The number of bytes in inbuf.
position
Type: System..::.Int32 %
A pointer to the position (in bytes) inside the buffer from which data will be unpacked. This position will be updated to reflect the position of the next value in the buffer after the data has been unpacked.
outbuf
Type: System..::.IntPtr
A pointer to the buffer where the unpacked data will be written. This buffer contains values whose MPI datatype is datatype.
outcount
Type: System..::.Int32
Number of values that will be stored into outbuf.
datatype
Type: System..::.Int32
The type of data in outbuf.
comm
Type: System..::.Int32
The communicator for which the packing was performed (and which may have been used to transmit the serialized data).

Return Value

See Also