private boolean rvaIsWithin(VirtualLocation loc) {
        long endpoint = loc.from() + loc.size();
        return virtualAddress >= loc.from() && virtualAddress < endpoint;
    }
private boolean rvaIsWithin ( VirtualLocation loc ) { long endpoint = loc . from ( ) + loc . size ( ) ; return virtualAddress >= loc . from ( ) && virtualAddress < endpoint ; }
Returns whether the data entry va is within the given location. (location
start inclusive, location end exclusive)

@param loc
the virtual location to check
@return true iff data entry va is equal to or larger than location start
and smaller than location end