pub fn address_in_memory(&self, addr: GuestAddress, size: u64) -> bool {
        let view = &self.flat_view.load();

        view.find_flatrange(addr).map_or(false, |range| {
            range.owner.region_type() == RegionType::Ram
                && size <= range.addr_range.end_addr().offset_from(addr)
        })
    }
/// Check if the GuestAddress is in one of Ram region.
///
/// # Arguments
///
/// * `addr` - Guest address.
Check if the GuestAddress is in one of Ram region.
Check if the GuestAddress is in one of Ram region .
pub fn address_in_memory(&self, addr: GuestAddress, size: u64) -> bool {
        let view = &self.flat_view.load();
        view.find_flatrange(addr).map_or(false, |range| {
            range.owner.region_type() == RegionType::Ram
                && size <= range.addr_range.end_addr().offset_from(addr)
        })
    }
pub fn address_in_memory ( & self , addr : GuestAddress , size : u64 ) -> bool { let view = & self . flat_view . load ( ) ; view . find_flatrange ( addr ) . map_or ( false , | range | { range . owner . region_type ( ) == RegionType :: Ram && size <= range . addr_range . end_addr ( ) . offset_from ( addr ) } ) }
Check if the GuestAddress is in one of Ram region.
Check if the GuestAddress is in one of Ram region .
&self
addr
GuestAddress
size
u64
&self
addr
GuestAddress
size
u64