C# Class Mosa.DeviceSystem.DiskDevice

Inheritance: Mosa.DeviceSystem.Device, IDiskDevice, IDevice
ファイルを表示 Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
DiskDevice ( IDiskControllerDevice diskController, uint driveNbr, bool readOnly ) : Mosa.HardwareSystem

Initializes a new instance of the DiskDevice class.

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 ( IDiskControllerDevice diskController, uint driveNbr, bool readOnly ) : Mosa.HardwareSystem
diskController IDiskControllerDevice The disk controller.
driveNbr uint The drive number.
readOnly bool if set to true [read only].
return Mosa.HardwareSystem

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