Add a way to write a VectorStream back

This commit is contained in:
Robbert van der Helm
2020-12-14 12:24:09 +01:00
parent 816d1c1501
commit 02e6fb1ba8
2 changed files with 24 additions and 0 deletions
+8
View File
@@ -127,6 +127,8 @@ class VectorStream : public Steinberg::IBStream,
/**
* Read an existing stream.
*
* @throw std::runtime_error If we couldn't read from the stream.
*/
VectorStream(Steinberg::IBStream* stream);
@@ -134,6 +136,12 @@ class VectorStream : public Steinberg::IBStream,
DECLARE_FUNKNOWN_METHODS
/**
* Write the vector buffer back to an IBStream. After writing the seek
* position will be left at the end of the stream.
*/
tresult write_back(Steinberg::IBStream* stream);
/**
* Return the buffer's, used in the logging messages.
*/