19 #ifndef JAMBA_FASTWRITEMEMORYSTREAM_H 20 #define JAMBA_FASTWRITEMEMORYSTREAM_H 22 #include <pluginterfaces/base/ibstream.h> 26 using namespace Steinberg;
50 virtual tresult PLUGIN_API read(
void *buffer, int32 numBytes, int32 *numBytesRead) SMTG_OVERRIDE;
51 virtual tresult PLUGIN_API write(
void *buffer, int32 numBytes, int32 *numBytesWritten) SMTG_OVERRIDE;
52 virtual tresult PLUGIN_API seek(int64 pos, int32 mode, int64 *result) SMTG_OVERRIDE;
53 virtual tresult PLUGIN_API tell(int64 *pos) SMTG_OVERRIDE;
56 void setSize(TSize size);
58 inline void clear() { setSize(0); }
59 inline char const*
getData()
const {
return memory; }
60 inline int64
pos()
const {
return cursor; }
63 DECLARE_FUNKNOWN_METHODS
75 #endif //JAMBA_FASTWRITEMEMORYSTREAM_H TSize memorySize
Definition: FastWriteMemoryStream.h:66
int64 pos() const
Definition: FastWriteMemoryStream.h:60
Definition: ExpiringDataCache.h:27
This class is a copy of MemoryStream for the purpose of fixing the growing issue encountered on Windo...
Definition: FastWriteMemoryStream.h:41
char const * getData() const
Definition: FastWriteMemoryStream.h:59
char * memory
Definition: FastWriteMemoryStream.h:65
int64 cursor
Definition: FastWriteMemoryStream.h:68
void clear()
Definition: FastWriteMemoryStream.h:58
TSize size
Definition: FastWriteMemoryStream.h:67
bool allocationError
Definition: FastWriteMemoryStream.h:69
TSize getSize() const
Definition: FastWriteMemoryStream.h:55