Mercurial > paraspace
changeset 14:f5728c6868b2
Doc on position depended structure
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 27 May 2011 00:40:14 +0800 |
parents | c05fac334ab1 |
children | c98be35b572b |
files | paraspace/dexfile.py |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/paraspace/dexfile.py Wed May 25 21:47:15 2011 +0800 +++ b/paraspace/dexfile.py Fri May 27 00:40:14 2011 +0800 @@ -358,7 +358,7 @@ class _DEX_Method(object): methodIdx = None accessFlags = None - codeOff = None + codeOff = None #!< This is only pos depended field data_size = None @@ -371,6 +371,10 @@ sz = sz + sh off = off + sh + # + # Offset with unsigned leb128 makes its size is vary for + # position. + # self.codeOff, sh = _uleb128(data[off:off + 10]) sz = sz + sh @@ -385,6 +389,12 @@ pass pass +## \brief Class data +# +# This is only top-level (map item) structure that is position +# depended. Since _DEX_Method is position depended, its size is vary +# for position. +# class _DEX_ClassData(object): header = None # DexClassDataHeader staticFields = None # DexField*