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

Inheritance: Stream
显示文件 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_oe property

protected uint clusterSize
return uint

currentCluster protected_oe property

protected uint currentCluster
return uint

data protected_oe property

protected byte[] data
return byte[]

directoryIndex protected_oe property

protected uint directoryIndex
return uint

directorySector protected_oe property

protected uint directorySector
return uint

dirty protected_oe property

protected bool dirty
return bool

fs protected_oe property

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

length protected_oe property

protected long length
return long

lengthOnDisk protected_oe property

protected long lengthOnDisk
return long

nthCluster protected_oe property

protected uint nthCluster
return uint

position protected_oe property

protected long position
return long

read protected_oe property

protected bool read
return bool

startCluster protected_oe property

protected uint startCluster
return uint

write protected_oe property

protected bool write
return bool