Advanced Strategic Command
Public Member Functions | Friends | List of all members
MemoryStreamStorage Class Reference

An in-memory storage of streamed data. More...

#include <basestrm.h>

Public Member Functions

 MemoryStreamStorage ()
 
void writetostream (tnstream *stream)
 persist the contents in another stream More...
 
void readfromstream (tnstream *stream)
 read persisted contents from another stream More...
 
void clear ()
 
int getMemoryFootprint () const
 
const Uint8 * getBuffer () const
 
int getSize () const
 
 ~MemoryStreamStorage ()
 

Friends

class MemoryStream
 

Detailed Description

An in-memory storage of streamed data.

A MemoryStream can be used to read or write to it

Definition at line 172 of file basestrm.h.

Constructor & Destructor Documentation

MemoryStreamStorage::MemoryStreamStorage ( void  )

Definition at line 2287 of file basestrm.cpp.

MemoryStreamStorage::~MemoryStreamStorage ( void  )

Definition at line 2295 of file basestrm.cpp.

Member Function Documentation

void MemoryStreamStorage::clear ( )
inline

Definition at line 190 of file basestrm.h.

Referenced by ClipBoardBase::clear(), and Reinforcements::setup().

const Uint8* MemoryStreamStorage::getBuffer ( ) const
inline

Definition at line 194 of file basestrm.h.

References MemoryStream::buf.

int MemoryStreamStorage::getMemoryFootprint ( ) const
inline

Definition at line 192 of file basestrm.h.

Referenced by GameMap::getMemoryFootprint().

int MemoryStreamStorage::getSize ( void  ) const
inline

Definition at line 195 of file basestrm.h.

Referenced by LogActionIntoReplayInfo::saveCommand().

void MemoryStreamStorage::readfromstream ( tnstream stream)
void MemoryStreamStorage::writetostream ( tnstream stream)

Friends And Related Function Documentation

friend class MemoryStream
friend

Definition at line 173 of file basestrm.h.


The documentation for this class was generated from the following files: