#include <file.h>
Public Member Functions | |
MemStream () | |
MemStream (size_type nLen) | |
virtual | ~MemStream () |
void | IncRef () |
Increment the number of references to this object. | |
void | DecRef () |
Decrement the reference count. | |
position_type | GetPosition () const |
int | Seek (offset_type lOff, int nFrom) |
void | SetLength (size_type nNewLen) |
size_type | GetLength () const |
unsigned char * | GetBuffer () const |
size_type | read (byte_type *buffer, size_type length) |
size_type | write (const byte_type *buffer, size_type length) |
char * | ReadString (char *pBuf, size_type nMax) |
int | GetChar () |
int | PutChar (int c) |
void | printf (const char *,...) |
void | Abort () |
void | Flush () |
void | Close () |
bool | Open (const char *filename, const char *mode) |
Data Fields | |
int | refCount |
Protected Member Functions | |
void | GrowFile (size_type nNewLen) |
Protected Attributes | |
size_type | m_nGrowBytes |
size_type | m_nPosition |
size_type | m_nBufferSize |
size_type | m_nFileSize |
unsigned char * | m_pBuffer |
bool | m_bAutoDelete |
Definition at line 76 of file file.h.
MemStream::MemStream | ( | ) |
MemStream::MemStream | ( | size_type | nLen | ) |
virtual MemStream::~MemStream | ( | ) | [virtual] |
void MemStream::Abort | ( | ) | [virtual] |
Implements IDataStream.
void MemStream::Close | ( | ) | [virtual] |
Implements IDataStream.
void MemStream::DecRef | ( | ) | [inline, virtual] |
Decrement the reference count.
Implements IDataStream.
Definition at line 86 of file file.h.
References refCount.
void MemStream::Flush | ( | ) | [virtual] |
Implements IDataStream.
unsigned char* MemStream::GetBuffer | ( | ) | const [inline] |
int MemStream::GetChar | ( | ) | [virtual] |
Implements IDataStream.
size_type MemStream::GetLength | ( | ) | const [virtual] |
Implements IDataStream.
position_type MemStream::GetPosition | ( | ) | const [virtual] |
Implements IDataStream.
void MemStream::GrowFile | ( | size_type | nNewLen | ) | [protected] |
void MemStream::IncRef | ( | ) | [inline, virtual] |
Increment the number of references to this object.
Implements IDataStream.
Definition at line 83 of file file.h.
References refCount.
bool MemStream::Open | ( | const char * | filename, | |
const char * | mode | |||
) |
void MemStream::printf | ( | const char * | , | |
... | ||||
) | [virtual] |
Implements IDataStream.
int MemStream::PutChar | ( | int | c | ) | [virtual] |
Implements IDataStream.
size_type MemStream::read | ( | byte_type * | buffer, | |
size_type | length | |||
) |
char* MemStream::ReadString | ( | char * | pBuf, | |
size_type | nMax | |||
) | [virtual] |
Implements IDataStream.
int MemStream::Seek | ( | offset_type | lOff, | |
int | nFrom | |||
) | [virtual] |
Implements IDataStream.
void MemStream::SetLength | ( | size_type | nNewLen | ) | [virtual] |
Implements IDataStream.
size_type MemStream::write | ( | const byte_type * | buffer, | |
size_type | length | |||
) |
bool MemStream::m_bAutoDelete [protected] |
size_type MemStream::m_nBufferSize [protected] |
size_type MemStream::m_nFileSize [protected] |
size_type MemStream::m_nGrowBytes [protected] |
size_type MemStream::m_nPosition [protected] |
unsigned char* MemStream::m_pBuffer [protected] |
Definition at line 97 of file file.h.
Referenced by GetBuffer().