C# Class Mosa.Utility.BootImage.BlockFileStream

Inheritance: Mosa.DeviceSystem.Device, IDiskDevice
Mostra file Open project: tgiphil/MOSA-Project Class Usage Examples

Public Properties

Property Type Description
BlockOffset uint

Protected Properties

Property Type Description
diskFile System.IO.FileStream

Public Methods

Method Description
BlockFileStream ( string filename ) : System.IO

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

BlockFileStream() public method

Initializes a new instance of the BlockFileStream class.
public BlockFileStream ( 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