MPI_Pack

--- Packs a datatype into contiguous memory

Input Parameters

inbuf
input buffer start (choice)
incount
number of input data items (integer)
datatype
datatype of each input data item (handle)
outcount
output buffer size, in bytes (integer)
position
current position in buffer, in bytes (integer)
comm
communicator for packed message (handle)

Output Parameter

outbuf
output buffer start (choice)

Synopsis


#include "mpi.h"
int MPI_Pack ( inbuf, incount, type, outbuf, outcount, position, comm )
void         *inbuf;
int           incount;
MPI_Datatype  type;
void         *outbuf;
int           outcount;
int          *position;
MPI_Comm      comm;

Location: pack.c