summaryrefslogtreecommitdiffstats
path: root/src/Stream.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-24 17:58:06 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commit6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f (patch)
tree4055e47d4285d63e01a54b16650b2df6c382dc2c /src/Stream.cpp
parent2017-09-23 (diff)
downloadAltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar.gz
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar.bz2
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar.lz
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar.xz
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.tar.zst
AltCraft-6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f.zip
Diffstat (limited to '')
-rw-r--r--src/Stream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Stream.cpp b/src/Stream.cpp
index 6f93c9c..c7935e6 100644
--- a/src/Stream.cpp
+++ b/src/Stream.cpp
@@ -343,6 +343,10 @@ std::vector<unsigned char> StreamBuffer::GetBuffer() {
return std::vector<unsigned char>(buffer, buffer + bufferLength);
}
+size_t StreamBuffer::GetReadedLength() {
+ return bufferPtr - buffer;
+}
+
void StreamCounter::WriteData(unsigned char *buffPtr, size_t buffLen) {
buffPtr++;
size += buffLen;