MPI_Pack(3)

MPI_Pack - Packs a data type into contiguous memory

As shipped in IRIX 6.5.30. Added in IRIX 6.5.19.

NAME
     MPI_Pack - Packs a data type into contiguous memory

SYNOPSIS
     C:

          #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;


     C++:

          #include <mpi.h>

          void Datatype::Pack(
          const void*       inbuf,
          int               incount,
          void              *outbuf,
          int               outsize,
          int&              position,
          const Comm        &comm) const


     Fortran:

          INCLUDE "mpif.h" (or USE MPI)

          <type> INBUF(*), OUTBUF(*)
          INTEGER incount, datatype, outsize, position, comm, ierror

          CALL MPI_PACK(inbuf, incount, datatype, *outbuf, outsize, position, comm, ierror)


STANDARDS
     This release implements the MPI 1.2 standard, as documented by the MPI
     Forum in the spring 1997 release of MPI:  A Message Passing Interface
     Standard.

DESCRIPTION
     The MPI_Pack routine packs a data type into contiguous memory.  This
     routine accepts the following parameters;
     inbuf     Specifies the input buffer start (choice)

     incount   Specifies the number of input data items (integer)

     type      Specifies the data type of each input data item (handle)

     outcount  Specifies the output buffer size in bytes (integer)

     position  Specifies the current position in the buffer in bytes (integer)

     comm      Specifies the communicator for the packed message (handle)

     outbuf    Returns the output buffer start (choice)

     ierror    Specifies the return code value for successful completion,
               which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mpif.h
               file.

SEE ALSO
     MPI_Pack_size(3), MPI_Unpack(3)