C# Class Mosa.DeviceSystem.PartitionDevice

Inheritance: Mosa.DeviceSystem.Device, IDevice, IPartitionDevice
显示文件 Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
PartitionDevice ( IDiskDevice diskDevice, Mosa.DeviceSystem.GenericPartition partition, bool readOnly ) : Mosa.HardwareSystem

Initializes a new instance of the PartitionDevice class.

PartitionDevice ( IDiskDevice diskDevice, bool readOnly ) : Mosa.HardwareSystem

Initializes a new instance of the PartitionDevice 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

PartitionDevice() public method

Initializes a new instance of the PartitionDevice class.
public PartitionDevice ( IDiskDevice diskDevice, Mosa.DeviceSystem.GenericPartition partition, bool readOnly ) : Mosa.HardwareSystem
diskDevice IDiskDevice The disk device.
partition Mosa.DeviceSystem.GenericPartition The partition.
readOnly bool if set to true [read only].
return Mosa.HardwareSystem

PartitionDevice() public method

Initializes a new instance of the PartitionDevice class.
public PartitionDevice ( IDiskDevice diskDevice, bool readOnly ) : Mosa.HardwareSystem
diskDevice IDiskDevice The disk device.
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