#NEWLINE# def decode_enum_ref( key , fp ) : #NEWLINE# #INDENT# name = read_unicode_string ( fp ) [ : ( - 1 ) ] #NEWLINE# classID_length = read_fmt ( 'I' , fp ) [ 0 ] #NEWLINE# classID = fp . read ( ( classID_length or 4 ) ) #NEWLINE# typeID_length = read_fmt ( 'I' , fp ) [ 0 ] #NEWLINE# typeID = fp . read ( ( typeID_length or 4 ) ) #NEWLINE# enum_length = read_fmt ( 'I' , fp ) [ 0 ] #NEWLINE# enum = fp . read ( ( enum_length or 4 ) ) #NEWLINE# return EnumReference ( name , classID , typeID , enum )