Full specialization of PackTraits for std::string.
More...
#include <EpetraExt_PackTraits.h>
|
| static size_t | size (std::string const &object) |
| |
| static void | pack (std::string const &object, char *buf, size_t size, int &pos) |
| |
| static void | unpack (std::string &object, char *buf, size_t size, int &pos) |
| |
| static size_t | size (std::string const &object) |
| | Returns size in byte necessary to pack datatype.
|
| |
| static void | pack (std::string const &object, char *buf, size_t size, int &pos) |
| | Packs object into char buffer.
|
| |
| static void | unpack (std::string &object, char *buf, size_t size, int &pos) |
| | Unpacks object from char buffer.
|
| |
Full specialization of PackTraits for std::string.
Definition at line 98 of file EpetraExt_PackTraits.h.
◆ size() [1/2]
◆ pack() [1/2]
| static void EpetraExt::PackTraits< std::string >::pack |
( |
std::string const & | object, |
|
|
char * | buf, |
|
|
size_t | size, |
|
|
int & | pos ) |
|
inlinestatic |
◆ unpack() [1/2]
| static void EpetraExt::PackTraits< std::string >::unpack |
( |
std::string & | object, |
|
|
char * | buf, |
|
|
size_t | size, |
|
|
int & | pos ) |
|
inlinestatic |
◆ size() [2/2]
Returns size in byte necessary to pack datatype.
- Parameters
-
| object | Input, object to be sized for packing. |
- Returns
- Size in bytes needed for packed object.
Definition at line 70 of file EpetraExt_PackTraits.h.
◆ pack() [2/2]
| static void EpetraExt::PackTraits< std::string >::pack |
( |
std::string const & | object, |
|
|
char * | buf, |
|
|
size_t | size, |
|
|
int & | pos ) |
|
inlinestatic |
Packs object into char buffer.
- Parameters
-
| 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.
◆ unpack() [2/2]
| static void EpetraExt::PackTraits< std::string >::unpack |
( |
std::string & | object, |
|
|
char * | buf, |
|
|
size_t | size, |
|
|
int & | pos ) |
|
inlinestatic |
Unpacks object from char buffer.
- Parameters
-
| 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.
The documentation for this struct was generated from the following file: