fn memory_offset() -> usize {
    let page_size = host_page_size() as usize;
    if page_size >= MIGRATION_HEADER_LENGTH + size_of::<AddressSpaceState>() {
        page_size
    } else {
        page_size * 2
    }
}
// To get the offset to memory data in memory snapshot file.
// It would be changed when pagesize changed.
To get the offset to memory data in memory snapshot file.
It would be changed when pagesize changed.
To get the offset to memory data in memory snapshot file . It would be changed when pagesize changed .
fn memory_offset() -> usize {
    let page_size = host_page_size() as usize;
    if page_size >= MIGRATION_HEADER_LENGTH + size_of::<AddressSpaceState>() {
        page_size
    } else {
        page_size * 2
    }
}
fn memory_offset ( ) -> usize { let page_size = host_page_size ( ) as usize ; if page_size >= MIGRATION_HEADER_LENGTH + size_of :: < AddressSpaceState > ( ) { page_size } else { page_size * 2 } }
To get the offset to memory data in memory snapshot file.
To get the offset to memory data in memory snapshot file .