From 66f4c9e0c08762fb4668792999c6200e9fd78c89 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 27 Aug 2012 17:31:16 +0000 Subject: Cut out all packet handling to a separate cProtocol descendant git-svn-id: http://mc-server.googlecode.com/svn/trunk@796 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ByteBuffer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/ByteBuffer.cpp') diff --git a/source/ByteBuffer.cpp b/source/ByteBuffer.cpp index e410bdfe0..af7151260 100644 --- a/source/ByteBuffer.cpp +++ b/source/ByteBuffer.cpp @@ -306,6 +306,15 @@ bool cByteBuffer::SkipRead(int a_Count) +void cByteBuffer::ReadAll(AString & a_Data) +{ + ReadString(a_Data, GetReadableSpace()); +} + + + + + void cByteBuffer::CommitRead(void) { m_DataStart = m_ReadPos; -- cgit v1.2.3