#NEWLINE# def __init__( self , ifile , ptrsize , is_le ) : #NEWLINE# #INDENT# super ( ) . __init__ ( ptrsize , is_le ) #NEWLINE# if ( ptrsize == 64 ) : #NEWLINE# #INDENT# is_64 = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# is_64 = False #NEWLINE# #UNINDENT# self . sh_name = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# self . sh_type = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# if is_64 : #NEWLINE# #INDENT# self . sh_flags = struct . unpack ( self . XWord , ifile . read ( self . XWordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . sh_flags = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# self . sh_addr = struct . unpack ( self . Addr , ifile . read ( self . AddrSize ) ) [ 0 ] #NEWLINE# self . sh_offset = struct . unpack ( self . Off , ifile . read ( self . OffSize ) ) [ 0 ] #NEWLINE# if is_64 : #NEWLINE# #INDENT# self . sh_size = struct . unpack ( self . XWord , ifile . read ( self . XWordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . sh_size = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# self . sh_link = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# self . sh_info = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# if is_64 : #NEWLINE# #INDENT# self . sh_addralign = struct . unpack ( self . XWord , ifile . read ( self . XWordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . sh_addralign = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# if is_64 : #NEWLINE# #INDENT# self . sh_entsize = struct . unpack ( self . XWord , ifile . read ( self . XWordSize ) ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . sh_entsize = struct . unpack ( self . Word , ifile . read ( self . WordSize ) ) [ 0 ]