# HG changeset patch # User Thinker K.F. Li # Date 1306428014 -28800 # Node ID f5728c6868b2961b93a08fd21eb896629e252cbe # Parent c05fac334ab113953ac740f325cf3339c8369ba6 Doc on position depended structure diff -r c05fac334ab1 -r f5728c6868b2 paraspace/dexfile.py --- 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*