diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-27 13:01:35 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-27 15:06:36 +0100 |
commit | a2345d1f45870eb00a2a3d5d6fd21a386efcade3 (patch) | |
tree | 895dbf8f78d5b0117fb0daaab43423775ac4c304 /src/Stream.hpp | |
parent | Merge pull request #31 from uis246/pluginSystem (diff) | |
download | AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar.gz AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar.bz2 AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar.lz AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar.xz AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.tar.zst AltCraft-a2345d1f45870eb00a2a3d5d6fd21a386efcade3.zip |
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(); |