mpi
Class GenericPacker

java.lang.Object
  extended by mpi.GenericPacker
All Implemented Interfaces:
Packer
Direct Known Subclasses:
GatherPackerBoolean, GatherPackerByte, GatherPackerChar, GatherPackerDouble, GatherPackerFloat, GatherPackerInt, GatherPackerLong, GatherPackerObject, GatherPackerShort

public abstract class GenericPacker
extends java.lang.Object
implements Packer


Constructor Summary
GenericPacker(int extent, int size)
           
 
Method Summary
 void pack(Buffer mpjbuf, java.lang.Object buf, int offset, int count)
           
 void unpack(Buffer mpjbuf, int length, java.lang.Object buf, int offset, int count)
           
 void unpack(Buffer mpjbuf, java.lang.Object buf, int offset, int count)
          this method was not there, but putting it exactly as pack method above offcourse changing pack to unpack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mpi.Packer
pack, unpack, unpackPartial
 

Constructor Detail

GenericPacker

public GenericPacker(int extent,
                     int size)
Method Detail

pack

public void pack(Buffer mpjbuf,
                 java.lang.Object buf,
                 int offset,
                 int count)
          throws MPIException
Specified by:
pack in interface Packer
Throws:
MPIException

unpack

public void unpack(Buffer mpjbuf,
                   int length,
                   java.lang.Object buf,
                   int offset,
                   int count)
            throws MPIException
Specified by:
unpack in interface Packer
Throws:
MPIException

unpack

public void unpack(Buffer mpjbuf,
                   java.lang.Object buf,
                   int offset,
                   int count)
            throws MPIException
this method was not there, but putting it exactly as pack method above offcourse changing pack to unpack.

Specified by:
unpack in interface Packer
Throws:
MPIException