public Optional < SectionHeader > maybeGetSectionHeaderByRVA ( long rva ) { List < SectionHeader > headers = table . getSectionHeaders ( ) ; for ( SectionHeader header : headers ) { VirtualLocation vLoc = getVirtualSectionLocation ( header ) ; if ( addressIsWithin ( vLoc , rva ) ) { return Optional . of ( header ) ; } } return Optional . absent ( ) ; }
Returns the section entry of the section table the rva is pointing into .