diff options
Diffstat (limited to 'src/Stream.hpp')
-rw-r--r-- | src/Stream.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Stream.hpp b/src/Stream.hpp index 8269300..a7c161b 100644 --- a/src/Stream.hpp +++ b/src/Stream.hpp @@ -73,9 +73,8 @@ public: }; class StreamBuffer : public StreamInput, public StreamOutput { - unsigned char *buffer; + std::vector<unsigned char> buffer; unsigned char *bufferPtr; - size_t bufferLength; void ReadData(unsigned char *buffPtr, size_t buffLen) override; void WriteData(unsigned char *buffPtr, size_t buffLen) override; @@ -83,7 +82,6 @@ class StreamBuffer : public StreamInput, public StreamOutput { public: StreamBuffer(unsigned char *data, size_t dataLen); StreamBuffer(size_t bufferLen); - ~StreamBuffer(); std::vector<unsigned char> GetBuffer(); size_t GetReadedLength(); |