C# Class Mosa.EmulatedDevices.Synthetic.RamDiskDevice

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

Protected Properties

Свойство Type Description
mem byte[]
totalBlocks uint

Méthodes publiques

Méthode 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 méthode

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

ReadBlock() public méthode

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

ReadBlock() public méthode

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

WriteBlock() public méthode

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

Property Details

mem protected_oe property

protected byte[] mem
Résultat byte[]

totalBlocks protected_oe property

protected uint totalBlocks
Résultat uint