Dolda2000 GitWeb
/
pycfml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaf86c3
)
Added a tell function to the decstream for debugging.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 22 Oct 2016 05:54:23 +0000
(07:54 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 22 Oct 2016 05:54:23 +0000
(07:54 +0200)
classfile/binfmt.py
patch
|
blob
|
blame
|
history
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: