Rocket::Core::StreamMemory Class Reference

#include <StreamMemory.h>

Inheritance diagram for Rocket::Core::StreamMemory:
Collaboration diagram for Rocket::Core::StreamMemory:

Public Member Functions

 StreamMemory ()
 Empty memory stream with default size buffer.
 StreamMemory (size_t initial_size)
 Empty memory stream with specified buffer size.
 StreamMemory (const byte *buffer, size_t buffer_size)
 Read only memory stream based on the existing buffer.
 StreamMemory (const StreamMemory &copy)
 Copy a memory stream.
StreamMemoryoperator= (const StreamMemory &copy)
virtual void Close ()
 Close the stream.
virtual bool IsEOS () const
 Are we at the end of the stream.
virtual size_t Length () const
 Size of this stream ( in bytes ).
size_t Tell () const
 Get Stream position ( in bytes ).
bool Seek (long offset, int origin) const
 Set Stream position ( in bytes ).
virtual size_t Read (void *buffer, size_t bytes) const
 Read from the stream.
virtual size_t Peek (void *buffer, size_t bytes)
 Peek into the stream.
virtual size_t Write (const void *buffer, size_t bytes)
 Write to the stream at the current position.
virtual size_t Truncate (size_t bytes)
 Truncate the stream to the specified length.
virtual size_t PushFront (const void *buffer, size_t bytes)
 Push onto the front of the stream.
virtual size_t PopFront (size_t bytes)
 Pop from the front of the stream.
const byte * RawStream () const
 Raw access to the stream.
void Erase (size_t offset, size_t bytes)
 Erase a section of the stream.
virtual bool IsReadReady ()
 Does the stream have data available for reading.
virtual bool IsWriteReady ()
 Is the stream able to accept data now.
void SetSourceURL (const URL &url)

Detailed Description

Memory Byte Stream Class
Author:
Lloyd Weehuizen

Member Function Documentation

void Rocket::Core::StreamMemory::SetSourceURL ( const URL url  ) 

Sets this streams source URL, useful data that is stored in memory streams that originated from files


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