Class which streams data into memory
Class which streams data into memory.The class will only take int, float or string (char * only) variables and streams them into memory. Care is taken to ensure that all data is aligned on 4 byte boundaries since otherwise Alpha CPUs will produce unalign exception errors. Padding of strings is taken care of by the class so that the user need not worry about such things. At initialization time the class will also perform a simple check on the byte order of the host machine. If this differs from the Alpha architecture standard then all integers and floats will be byteswapped to the Alpha standard before being stored in the memory buffer. The class is written without inheritance from the STL because it must be capable of running online on the Alpha VME hardware. This also precludes use of dynamic memory allocation except.
MStream(char *start, char *end)
end - highest memory location the stream can use char* start(void)
char* end(void)
MStream& operator<<(int i)
MStream& operator<<(float f)
MStream& operator<<(double d)
MStream& operator<<(const char *s)
MStream& operator>>(int &i)
MStream& operator>>(float &f)
MStream& operator>>(double &d)
MStream& operator>>(char *s)
bool byteOrder(void)
int swap(int i)
float swap(float f)
char* som
char* eom
char* ptr
bool swapflag
This page has been generated automatically by doc++.
Copyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de