commit | 75eccc5bcf7773921993a64a9d9e7122183e85ab | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Wed Dec 04 22:04:39 1996 +0000 |
committer | Barry Warsaw <barry@python.org> | Wed Dec 04 22:04:39 1996 +0000 |
tree | 887318588aee42562e8e5f1ab010514861aba847 | |
parent | fd8a393086fbf43597965d5e55bec158a094a466 [diff] [blame] |
Unpacker.get_buffer(): new method to access the internal buffer of data
diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py index 3c18233..fb1e72d 100644 --- a/Lib/xdrlib.py +++ b/Lib/xdrlib.py
@@ -150,6 +150,9 @@ 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')