Public Types | |
typedef unsigned long | DataLength |
typedef unsigned long | DataLength |
Public Member Functions | |
CMemoryInputOutputStream () | |
Create streams on a 0 sized memory buffer. Call Resize() to actually allocate a buffer to work in. | |
CMemoryInputOutputStream (DataLength size) | |
Create streams on a size sized memory buffer and take ownership of that buffer. | |
CMemoryInputOutputStream (BYTE *pData, DataLength size) | |
Create streams on the supplied memory buffer. Does not take ownership of the memory. | |
CMemoryInputOutputStream (const CMemoryInputOutputStream &rhs) | |
~CMemoryInputOutputStream () override | |
CMemoryInputOutputStream & | operator= (const CMemoryInputOutputStream &rhs) |
void | Resize (DataLength size) |
Resize the memory buffer. Note this only works if the object owns the memory buffer. | |
void | Read (BYTE *pData, DataLength dataLength) override |
void | Write (const BYTE *pData, DataLength dataLength) override |
void | Close () override |
virtual void | WriteString (const std::string &message) |
typedef unsigned long DataLength [inherited] |
typedef unsigned long DataLength [inherited] |
Create streams on a 0 sized memory buffer. Call Resize() to actually allocate a buffer to work in.
CMemoryInputOutputStream | ( | DataLength | size | ) | [explicit] |
Create streams on a size sized memory buffer and take ownership of that buffer.
CMemoryInputOutputStream | ( | BYTE * | pData, | |
DataLength | size | |||
) |
Create streams on the supplied memory buffer. Does not take ownership of the memory.
CMemoryInputOutputStream | ( | const CMemoryInputOutputStream & | rhs | ) |
~CMemoryInputOutputStream | ( | ) | [override] |
CMemoryInputOutputStream& operator= | ( | const CMemoryInputOutputStream & | rhs | ) |
void Resize | ( | DataLength | size | ) |
Resize the memory buffer. Note this only works if the object owns the memory buffer.
void Read | ( | BYTE * | pData, | |
DataLength | dataLength | |||
) | [override, virtual] |
Implements IInputStream.
void Write | ( | const BYTE * | pData, | |
DataLength | dataLength | |||
) | [override, virtual] |
Implements IOutputStream.
void Close | ( | ) | [override, virtual] |
Implements ICloseableOutputStream.
virtual void WriteString | ( | const std::string & | message | ) | [inline, virtual, inherited] |