C# Class SharpOS.Kernel.FileSystem.FATFileSystem.FATFileStream

Inheritance: Stream
Show file Open project: sharpos/SharpOS

Protected Properties

Property Type Description
clusterSize uint
currentCluster uint
data byte[]
directoryIndex uint
directorySector uint
dirty bool
fs FAT
length long
lengthOnDisk long
nthCluster uint
position long
read bool
startCluster uint
write bool

Public Methods

Method Description
FATFileStream ( FAT fs, uint startCluster, uint directorySector, uint directoryIndex ) : System
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
NextCluster ( ) : void
ReadCluster ( uint cluster ) : void

Method Details

FATFileStream() public method

public FATFileStream ( FAT fs, uint startCluster, uint directorySector, uint directoryIndex ) : System
fs FAT
startCluster uint
directorySector uint
directoryIndex uint
return System

Flush() public method

public Flush ( ) : void
return void

NextCluster() protected method

protected NextCluster ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

ReadCluster() protected method

protected ReadCluster ( uint cluster ) : void
cluster uint
return void

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

Property Details

clusterSize protected property

protected uint clusterSize
return uint

currentCluster protected property

protected uint currentCluster
return uint

data protected property

protected byte[] data
return byte[]

directoryIndex protected property

protected uint directoryIndex
return uint

directorySector protected property

protected uint directorySector
return uint

dirty protected property

protected bool dirty
return bool

fs protected property

protected FAT,SharpOS.Kernel.FileSystem.FATFileSystem fs
return FAT

length protected property

protected long length
return long

lengthOnDisk protected property

protected long lengthOnDisk
return long

nthCluster protected property

protected uint nthCluster
return uint

position protected property

protected long position
return long

read protected property

protected bool read
return bool

startCluster protected property

protected uint startCluster
return uint

write protected property

protected bool write
return bool