docs: def parse_delay_import_directory(self, rva, size):
          """Walk and parse the delay import directory."""
          
          import_descs =  []
          while True:
              try:
                  # If the RVA is invalid all would blow up. Some PEs seem to be
                  # specially nasty and have an invalid RVA.
                  data = self.get_data( rva, Structure(self.__IMAGE_DELAY_IMPORT_DESCRIPTOR_format__).sizeof() )
              except PEFormatError, e:
                  self.__warnings.append(
                      'Error parsing the Delay import directory at RVA: 0x%x' % ( rva ) )
                  break
              
              import_desc =  self.__unpack_data__(
                  self.__IMAGE_DELAY_IMPORT_DESCRIPTOR_format__,
                  data, file_offset = self.get_offset_from_rva(rva) )
              
              
              # If the structure is all zeroes, we reached the end of the list
              if not import_desc or import_desc.all_zeroes():
                  break
              
              
              rva += import_desc.sizeof()
              
              try:
                  import_data =  self.parse_imports(
                      import_desc.pINT,
                      import_desc.pIAT,
                      None)
              except PEFormatError, e:
                  self.__warnings.append(
                      'Error parsing the Delay import directory. ' +
                      'Invalid import data at RVA: 0x%x' % ( rva ) )
                  break
              
              if not import_data:
                  continue
              
              
              dll = self.get_string_at_rva(import_desc.szName)
              if not is_valid_dos_filename(dll):
                  dll = '*invalid*'
  
              if dll:
                  import_descs.append(
                      ImportDescData(
                          struct = import_desc,
                          imports = import_data,
                          dll = dll))
          
          return import_descs