예제 #1
0
 internal static Disk InitializeFixed(FileLocator fileLocator, string path, long capacity, Geometry geometry)
 {
     return(new Disk(DiskImageFile.InitializeFixed(fileLocator, path, capacity, geometry), Ownership.Dispose));
 }
예제 #2
0
 /// <summary>
 /// Initializes a stream as a fixed-sized VHDX file.
 /// </summary>
 /// <param name="stream">The stream to initialize.</param>
 /// <param name="ownsStream">Indicates if the new instance controls the lifetime of the stream.</param>
 /// <param name="capacity">The desired capacity of the new disk.</param>
 /// <param name="geometry">The desired geometry of the new disk, or <c>null</c> for default.</param>
 /// <returns>An object that accesses the stream as a VHDX file.</returns>
 public static Disk InitializeFixed(Stream stream, Ownership ownsStream, long capacity, Geometry geometry)
 {
     return(new Disk(DiskImageFile.InitializeFixed(stream, ownsStream, capacity, geometry), Ownership.Dispose));
 }