#NEWLINE# def deleted_entries( self ) : #NEWLINE# #INDENT# '\n        A generator that yields INDX entries found in the slack space\n        associated with this header.\n        ' #NEWLINE# off = ( self . offset ( ) + self . entry_size ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# while ( off < ( ( self . offset ( ) + self . entry_allocated_size ( ) ) - 82 ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# g_logger . debug ( 'Trying to find slack entry at %x.' , off ) #NEWLINE# e = NTATTR_DIRECTORY_INDEX_SLACK_ENTRY ( self . _buf , off , self ) #NEWLINE# if e . is_valid ( ) : #NEWLINE# #INDENT# g_logger . debug ( 'Slack entry is valid.' ) #NEWLINE# off = e . end_offset ( ) #NEWLINE# ( yield self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# g_logger . debug ( 'Slack entry is invalid.' ) #NEWLINE# raise ParseException ( 'Not a deleted entry' ) #NEWLINE# #UNINDENT# #UNINDENT# except ParseException : #NEWLINE# #INDENT# g_logger . debug ( 'Scanning one byte forward.' ) #NEWLINE# off += 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except struct . error : #NEWLINE# #INDENT# g_logger . debug ( 'Slack entry parsing overran buffer.' ) #NEWLINE# pass