Kaydet (Commit) 75eccc5b authored tarafından Barry Warsaw's avatar Barry Warsaw

Unpacker.get_buffer(): new method to access the internal buffer of data

üst fd8a3930
......@@ -150,6 +150,9 @@ class Unpacker:
def set_position(self, position):
self.__pos = position
def get_buffer(self):
return self.__buf
def done(self):
if self.__pos < len(self.__buf):
raise Error('unextracted data remains')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment