#NEWLINE# def n2s( self , offset , length ) : #NEWLINE# #INDENT# 'Convert offset to string.' #NEWLINE# s = '' #NEWLINE# for dummy in range ( length ) : #NEWLINE# #INDENT# if ( self . endian == 'I' ) : #NEWLINE# #INDENT# s += chr ( ( offset & 255 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s = ( chr ( ( offset & 255 ) ) + s ) #NEWLINE# #UNINDENT# offset = ( offset >> 8 ) #NEWLINE# #UNINDENT# return s