#include <Xdr.hh>
Static Public Member Functions | |
| void | copy (unsigned const char *from, unsigned char *dest, const int size, const int count) |
| Copies the the data in XDR, i.e. | |
| template<class T> void | tostream (std::string &s, T *t, unsigned count) |
| Writes count objects of (simple) type T to the string s in Xdr format. | |
| template<class T> unsigned | fromstream (const std::string &s, unsigned position, T *t, unsigned count) |
| Read count objects of (simple) type t from the string/stream s at position. Callers have to keep the current position within the string. | |
| void | tostream (std::string &s, std::string *strVal, unsigned count) |
| Specialization for strings - count is ignored and taken to be 1. | |
| unsigned | fromstream (const std::string &s, unsigned index, std::string *strVal, unsigned count) |
| Specialization for strings - count is ignored and taken to be 1. | |
These functions take care of the byte ordering and make sure the streamed data adheres to the xdr convention, e.g. every data item starts at a 32-bit word boundary.
|
||||||||||||||||||||
|
Copies the the data in XDR, i.e. machine independent format from one location to the another |
|
||||||||||||||||||||
|
Specialization for strings - count is ignored and taken to be 1.
|
|
||||||||||||||||||||||||
|
Read count objects of (simple) type t from the string/stream s at position.
|
1.3.5