MPI_Pack_size

int MPI_Pack_size(int, MPI_Datatype, MPI_Comm, int *);
Returns the number of bytes required to hold the data.