EpetraExt
Development
|
Traits for packing and unpacking of data into char buffers for communication. More...
#include <EpetraExt_PackTraits.h>
Static Public Member Functions | |
static size_t | size (T const &object) |
Returns size in byte necessary to pack datatype. More... | |
static void | pack (T const &object, char *buf, size_t size, int &pos) |
Packs object into char buffer. More... | |
static void | unpack (T &object, char *buf, size_t size, int &pos) |
Unpacks object from char buffer. More... | |
Traits for packing and unpacking of data into char buffers for communication.
Should be replaced by something more generic in Teuchos.
Definition at line 62 of file EpetraExt_PackTraits.h.
|
inlinestatic |
Returns size in byte necessary to pack datatype.
object | Input, object to be sized for packing. |
Definition at line 70 of file EpetraExt_PackTraits.h.
|
inlinestatic |
Packs object into char buffer.
object | data to be packed. |
buf | buffer to be used for packed data. |
size | total size of buffer (for overrun check). |
pos | current position in buffer for packing. |
Definition at line 80 of file EpetraExt_PackTraits.h.
|
inlinestatic |
Unpacks object from char buffer.
object | data to be unpacked. |
buf | buffer to be used for unpacking data. |
size | total size of buffer (for overrun check). |
pos | current position in buffer for unpacking. |
Definition at line 90 of file EpetraExt_PackTraits.h.