# HG changeset patch # User Thinker K.F. Li # Date 1306257307 -28800 # Node ID 8101024c942b5d729f6e5facf3df29ccbd180865 # Parent 409e2cd76f7216bb1d024ad2da82a003999744b0 Document class man_off diff -r 409e2cd76f72 -r 8101024c942b paraspace/dexfile.py --- a/paraspace/dexfile.py Wed May 25 01:11:43 2011 +0800 +++ b/paraspace/dexfile.py Wed May 25 01:15:07 2011 +0800 @@ -51,6 +51,17 @@ pass +## \brief Manage offset +# +# The instances are initialized with a offset. Every time an instance +# is called, it return the offset before advancing offset with specify +# size. +# +# moff = man_off(init_off) +# assert moff(5) == init_off +# assert moff() == (init_off + 5) +# assert moff() == (init_off + 5) +# class man_off(object): off = None