Dolda2000 GitWeb
/
pycfml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a tell function to the decstream for debugging.
[pycfml.git]
/
classfile
/
binfmt.py
diff --git
a/classfile/binfmt.py
b/classfile/binfmt.py
index
67a2d3c
..
cc2f420
100644
(file)
--- a/
classfile/binfmt.py
+++ b/
classfile/binfmt.py
@@
-93,6
+93,9
@@
class decstream(decoder):
self.buf.extend(ret)
return False
+ def tell(self):
+ return self.bk.tell() - len(self.buf)
+
def splice(self, ln=-1):
buf = self.buf
if ln < 0: