pub fn get_vmo_copy_from_file(f: &File) -> Result<Vmo, Status>
Expand description

Gets a read-only VMO containing the whole contents of the file. This function creates a clone of the underlying VMO when possible, falling back to eagerly reading the contents into a freshly-created VMO.