next up previous contents
Next: Collective Communication Up: Point-to-Point Communication Previous: Derived datatypes   Contents

Pack and unpack

int Comm.Pack(Object inbuf, int offset, int incount,
              Datatype datatype,
              byte [] outbuf, int position)
Java binding of the MPI operation MPI_PACK. The value of outcount is taken to be size of the outbuf argument. The return value is the output value of position.

int Comm.Unpack(byte [] inbuf, int position,
                Object outbuf, int offset, int outcount,
                Datatype datatype)
Java binding of the MPI operation MPI_UNPACK. The value of insize is taken to be size of the inbuf argument. The return value is the output value of position.

int Comm.Pack_size(int incount, Datatype datatype)
Java binding of the MPI operation MPI_PACK_SIZE. The return value is size.



Bryan Carpenter 2002-07-12