|
| MemoryStream () |
|
| MemoryStream (void *memory, TSize memorySize) |
| reuse a given memory without getting ownership More...
|
|
virtual | ~MemoryStream () |
|
tresult | read (void *buffer, int32 numBytes, int32 *numBytesRead) SMTG_OVERRIDE |
|
tresult | write (void *buffer, int32 numBytes, int32 *numBytesWritten) SMTG_OVERRIDE |
|
tresult | seek (int64 pos, int32 mode, int64 *result) SMTG_OVERRIDE |
|
tresult | tell (int64 *pos) SMTG_OVERRIDE |
|
TSize | getSize () const |
| returns the current memory size More...
|
|
void | setSize (TSize size) |
| set the memory size, a realloc will occur if memory already used More...
|
|
char * | getData () const |
| returns the memory pointer More...
|
|
char * | detachData () |
| returns the memory pointer and give up ownership More...
|
|
bool | truncate () |
| realloc to the current use memory size if needed More...
|
|
bool | truncateToCursor () |
| truncate memory at current cursor position More...
|
|
virtual tresult | read (void *buffer, int32 numBytes, int32 *numBytesRead=nullptr)=0 |
|
virtual tresult | write (void *buffer, int32 numBytes, int32 *numBytesWritten=nullptr)=0 |
|
virtual tresult | seek (int64 pos, int32 mode, int64 *result=nullptr)=0 |
|
virtual tresult | tell (int64 *pos)=0 |
|
virtual tresult | queryInterface (const TUID _iid, void **obj)=0 |
|
virtual uint32 | addRef ()=0 |
|
virtual uint32 | release ()=0 |
|
Memory based Stream for IBStream implementation (using malloc).