*<Null safety>*
SizedVmo.fromFile(String path)
Uses fdio_get_vmo_clone() to get a VMO for the file at path
in the
current Isolate's namespace.
The returned Vmo is read-only.
Implementation
factory SizedVmo.fromFile(String path) {
FromFileResult r = System.vmoFromFile(path);
if (r.status != ZX.OK) {
throw ZxStatusException(r.status, getStringForStatus(r.status));
}
return SizedVmo(r.handle, r.numBytes);
}