#include <basestrm.h>
Public Member Functions | |
| MemoryStreamStorage () | |
| void | writetostream (tnstream *stream) |
| persist the contents in another stream | |
| void | readfromstream (tnstream *stream) |
| read persisted contents from another stream | |
| void | clear () |
| int | getMemoryFootprint () const |
| const char * | getBuffer () const |
| int | getSize () const |
| ~MemoryStreamStorage () | |
Friends | |
| class | MemoryStream |
A MemoryStream can be used to read or write to it
Definition at line 172 of file basestrm.h.
| MemoryStreamStorage::MemoryStreamStorage | ( | ) |
Definition at line 2273 of file basestrm.cpp.
| MemoryStreamStorage::~MemoryStreamStorage | ( | ) |
Definition at line 2281 of file basestrm.cpp.
| void MemoryStreamStorage::writetostream | ( | tnstream * | stream | ) |
persist the contents in another stream
Definition at line 2289 of file basestrm.cpp.
References tnstream::writedata(), and tnstream::writeInt().
Referenced by LogActionIntoReplayInfo::saveCommand(), ClipBoardBase::write(), RemoveObject::writeData(), RemoveMine::writeData(), Reinforcements::writeData(), DestructContainer::writeData(), and AbstractTaskContainer::writeStorage().
| void MemoryStreamStorage::readfromstream | ( | tnstream * | stream | ) |
read persisted contents from another stream
Definition at line 2302 of file basestrm.cpp.
References max(), tnstream::readdata(), and tnstream::readInt().
Referenced by trunreplay::execnextreplaymove(), GameMap::ReplayInfo::read(), ClipBoardBase::read(), RemoveObject::readData(), RemoveMine::readData(), Reinforcements::readData(), DestructContainer::readData(), and AbstractTaskContainer::readStorage().
| void MemoryStreamStorage::clear | ( | ) | [inline] |
Definition at line 190 of file basestrm.h.
Referenced by ClipBoardBase::clear(), and Reinforcements::setup().
| int MemoryStreamStorage::getMemoryFootprint | ( | ) | const [inline] |
| const char* MemoryStreamStorage::getBuffer | ( | ) | const [inline] |
| int MemoryStreamStorage::getSize | ( | void | ) | const [inline] |
friend class MemoryStream [friend] |
Definition at line 173 of file basestrm.h.
1.5.1