SizedVmo.fromFile constructor

SizedVmo.fromFile(String path)

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);
}