Just buffer data when reading packets.

As of this commit, the rewrite is complete and pyCraft is back to a usable state
This commit is contained in:
Ammar Askar committed 2015-03-22 17:39:15 +05:00
1 parent c7b71d87a7
commit ba70a169e3
2 files changed
+25 -35

No files matched your search

+3
View File
@@ -19,6 +19,9 @@ class PacketBuffer(object):
def read(self, length):
return self.b.read(length)
def reset(self):
self.b = BytesIO()
def reset_cursor(self):
self.b.seek(0)