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:
1 parent
c7b71d87a7
commit
ba70a169e3
2 files changed
+25
-35
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user