WiFi Framework C++ Edition
CwclMemoryStream Class Reference

The memory stream. More...

#include <wclHelpers.h>

Inheritance diagram for CwclMemoryStream:
CwclCustomMemoryStream CwclStream

Public Member Functions

 CwclMemoryStream ()
 Creates new memory stream.
 
virtual ~CwclMemoryStream ()
 Frees the stream.
 
void Clear ()
 Clears the memory.
 
void LoadFromStream (CwclStream *const Stream)
 Loads data from stream.
 
virtual void SetSize (const unsigned long NewSize) override
 Sets the stream size.
 
virtual unsigned long Write (const void *const Buffer, const unsigned long Count) override
 Writes to the stream.
 
- Public Member Functions inherited from CwclCustomMemoryStream
 CwclCustomMemoryStream ()
 Creates new memory stream.
 
virtual ~CwclCustomMemoryStream ()
 Frees the stream.
 
virtual unsigned long Read (void *const Buffer, const unsigned long Count) override
 Reads from stream.
 
virtual unsigned long Seek (const long Offset, const wclSeekOrigin Origin) override
 Changes current position.
 
void SaveToStream (CwclStream *const Stream)
 Saves the data into the stream.
 
void * GetMemory () const
 Gets the pointer to the memory used by the stream.
 
- Public Member Functions inherited from CwclStream
 CwclStream ()
 Creates new stream object.
 
virtual ~CwclStream ()
 Frees the stream object.
 
unsigned long CopyFrom (CwclStream *const Source, unsigned long Count)
 Copies data from other stream.
 
unsigned long GetSize ()
 Gets the stream size.
 
unsigned long GetPosition ()
 Gets the current position.
 
void SetPosition (const unsigned long Pos)
 Sets the current position.
 

Protected Member Functions

virtual void * Realloc (unsigned long &NewCapacity)
 Reallocates memory.
 
void SetCapacity (unsigned long NewCapacity)
 Sets the stream capacity.
 
unsigned long GetCapacity () const
 Gets the stream capacity.
 
- Protected Member Functions inherited from CwclCustomMemoryStream
void SetPointer (void *const Ptr, const unsigned long Size)
 Sets new memory pointer and size.
 

Detailed Description

The memory stream.

See also
CwclCustomMemoryStream