parameters: (self, rva)
return_statement: return resource
docstring: Parse a directory entry from the resources directory.
docstring_summary: Parse a directory entry from the resources directory.
docstring_tokens: Parse a directory entry from the resources directory .
function: def parse_resource_entry(self, rva):
          """Parse a directory entry from the resources directory."""
  
          resource = self.__unpack_data__(
              self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data(rva),
              file_offset = self.get_offset_from_rva(rva) )
              
          if resource is None:
              return None
              
          #resource.NameIsString = (resource.Name & 0x80000000L) >> 31
          resource.NameOffset = resource.Name & 0x7FFFFFFFL
          
          resource.__pad = resource.Name & 0xFFFF0000L
          resource.Id = resource.Name & 0x0000FFFFL
          
          resource.DataIsDirectory = (resource.OffsetToData & 0x80000000L) >> 31
          resource.OffsetToDirectory = resource.OffsetToData & 0x7FFFFFFFL
          
          return resource
function_tokens: def parse_resource_entry ( self , rva ) : resource = self . __unpack_data__ ( self . __IMAGE_RESOURCE_DIRECTORY_ENTRY_format__ , self . get_data ( rva ) , file_offset = self . get_offset_from_rva ( rva ) ) if resource is None : return None #resource.NameIsString = (resource.Name & 0x80000000L) >> 31 resource . NameOffset = resource . Name & 0x7FFFFFFFL resource . __pad = resource . Name & 0xFFFF0000L resource . Id = resource . Name & 0x0000FFFFL resource . DataIsDirectory = ( resource . OffsetToData & 0x80000000L ) >> 31 resource . OffsetToDirectory = resource . OffsetToData & 0x7FFFFFFFL return resource