示例#1
0
 /// <summary>
 /// Initializes a stream as an unformatted floppy disk.
 /// </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="type">The type of floppy disk image to create.</param>
 /// <returns>An object that accesses the stream as a disk.</returns>
 public static Disk Initialize(Stream stream, Ownership ownsStream, FloppyDiskType type)
 {
     return(new Disk(DiskImageFile.Initialize(stream, ownsStream, type)));
 }
示例#2
0
 /// <summary>
 /// Initializes a stream as an unformatted disk.
 /// </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 disk.</returns>
 public static Disk Initialize(Stream stream, Ownership ownsStream, long capacity, Geometry geometry)
 {
     return(new Disk(DiskImageFile.Initialize(stream, ownsStream, capacity, geometry)));
 }