C# Class Mosa.EmulatedDevices.Synthetic.DiskDevice

Emulates a disk device
Inheritance: Mosa.DeviceSystem.Device, IDiskDevice
Exibir arquivo Open project: tgiphil/MOSA-Project

Public Properties

Property Type Description
BlockOffset uint

Protected Properties

Property Type Description
diskFile System.IO.FileStream

Public Methods

Method Description
DiskDevice ( string filename ) : System.IO

Initializes a new instance of the DiskDevice class.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources

ReadBlock ( uint block, uint count, byte data ) : bool

Reads the block.

ReadBlock ( uint block, uint count ) : byte[]

Reads the block.

WriteBlock ( uint block, uint count, byte data ) : bool

Writes the block.

Method Details

DiskDevice() public method

Initializes a new instance of the DiskDevice class.
public DiskDevice ( string filename ) : System.IO
filename string The filename.
return System.IO

Dispose() public method

Releases unmanaged and - optionally - managed resources
public Dispose ( ) : void
return void

ReadBlock() public method

Reads the block.
public ReadBlock ( uint block, uint count, byte data ) : bool
block uint The block.
count uint The count.
data byte The data.
return bool

ReadBlock() public method

Reads the block.
public ReadBlock ( uint block, uint count ) : byte[]
block uint The block.
count uint The count.
return byte[]

WriteBlock() public method

Writes the block.
public WriteBlock ( uint block, uint count, byte data ) : bool
block uint The block.
count uint The count.
data byte The data.
return bool

Property Details

BlockOffset public_oe property

public uint BlockOffset
return uint

diskFile protected_oe property

protected FileStream,System.IO diskFile
return System.IO.FileStream