C# Class Mosa.EmulatedDevices.Synthetic.RamDiskDevice

Emulates a ram disk device
Inheritance: Mosa.DeviceSystem.Device, IDiskDevice
Datei anzeigen Open project: tgiphil/MOSA-Project Class Usage Examples

Protected Properties

Property Type Description
mem byte[]
totalBlocks uint

Public Methods

Method Description
RamDiskDevice ( uint blocks ) : Mosa.DeviceSystem

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

RamDiskDevice() public method

Initializes a new instance of the RamDiskDevice class.
public RamDiskDevice ( uint blocks ) : Mosa.DeviceSystem
blocks uint The blocks.
return Mosa.DeviceSystem

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

mem protected_oe property

protected byte[] mem
return byte[]

totalBlocks protected_oe property

protected uint totalBlocks
return uint