lib/mapfiles/map-file.js
/**
     * Returns true if the address (and every address until address+size) is within
     *  one of the given spaces. Spaces should be of format returned by getReconstructedUnitAddressSpace()
     *
     * @param {object[]} spaces
     * @param {number} address
     * @param {number} size
     */
Returns true if the address (and every address until address+size) is within
one of the given spaces. Spaces should be of format returned by getReconstructedUnitAddressSpace()


Returns true if the address ( and every address until address + size ) is within one of the given spaces . Spaces should be of format returned by getReconstructedUnitAddressSpace ()
isWithinAddressSpace(spaces, address, size) {
        for (const spaceAddress of spaces) {
            if (
                (address >= spaceAddress.startAddress && address < spaceAddress.endAddress) ||
                (address < spaceAddress.startAddress && address + size >= spaceAddress.startAddress)
            ) {
                return true;
            }
        }
        return false;
    }
isWithinAddressSpace ( spaces , address , size ) { for ( const spaceAddress of spaces ) { if ( ( address >= spaceAddress . startAddress && address < spaceAddress . endAddress ) || ( address < spaceAddress . startAddress && address + size >= spaceAddress . startAddress ) ) { return true ; } } return false ; }
Returns true if the address (and every address until address+size) is within
  one of the given spaces.
Returns true if the address ( and every address until address + size ) is within one of the given spaces .