Serial Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclCustomMemoryStream Class Reference

The base class for memory streams. More...

#include <wclHelpers.h>

Inheritance diagram for CwclCustomMemoryStream:
CwclStream CwclMemoryStream

Public Member Functions

 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.
 
virtual unsigned long Read (void *const Buffer, const unsigned long Count)=0
 Reads from stream.
 
virtual unsigned long Write (const void *const Buffer, const unsigned long Count)=0
 Writes to the stream.
 
virtual unsigned long Seek (const long Offset, const wclSeekOrigin Origin)=0
 Changes current position.
 
unsigned long CopyFrom (CwclStream *const Source, unsigned long Count)
 Copies data from other stream.
 
unsigned long GetSize ()
 Gets the stream size.
 
virtual void SetSize (const unsigned long NewSize)=0
 Sets the stream size.
 
unsigned long GetPosition ()
 Gets the current position.
 
void SetPosition (const unsigned long Pos)
 Sets the current position.
 

Protected Member Functions

void SetPointer (void *const Ptr, const unsigned long Size)
 Sets new memory pointer and size.
 

Detailed Description

The base class for memory streams.

See also
CwclStream