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

Inheritance: SharpOS.Kernel.FileSystem.GenericFileSystem
显示文件 Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method Description
CreateVFSMount ( ) : IFileSystem
Delete ( uint childBlock, uint parentBlock, uint parentBlockIndex ) : void
ExtractFileName ( byte directory, uint index ) : string
FAT ( IPartitionDevice partition ) : System
FindEntry ( FAT compare, uint startCluster ) : DirectoryEntryLocation
FindNthCluster ( uint start, uint count ) : uint
Format ( FATSettings fatSettings ) : bool
GetClusterEntry ( byte data, uint index, FATType type ) : uint
GetFileSize ( uint directoryBlock, uint index ) : uint
GetSectorsPerClusterByTotalSectors ( FATType type, uint sectors ) : byte
NextCluster ( uint start ) : uint
ReadCluster ( uint cluster, byte block ) : bool
ReadCluster ( uint cluster ) : byte[]
WriteCluster ( uint cluster, byte block ) : bool

Protected Methods

Method Description
AllocateCluster ( ) : uint
FreeClusterChain ( uint first ) : bool
GetClusterBySector ( uint sector ) : uint
GetClusterEntryValue ( uint cluster ) : uint
IsClusterBad ( uint cluster ) : bool
IsClusterFree ( uint cluster ) : bool
IsClusterLast ( uint cluster ) : bool
IsClusterReserved ( uint cluster ) : bool
IsUsed ( uint cluster ) : bool
IsValidFatCharacter ( char c ) : bool
ReadBootSector ( ) : bool
SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool

Method Details

AllocateCluster() protected method

protected AllocateCluster ( ) : uint
return uint

CreateVFSMount() public method

public CreateVFSMount ( ) : IFileSystem
return IFileSystem

Delete() public method

public Delete ( uint childBlock, uint parentBlock, uint parentBlockIndex ) : void
childBlock uint
parentBlock uint
parentBlockIndex uint
return void

ExtractFileName() public static method

public static ExtractFileName ( byte directory, uint index ) : string
directory byte
index uint
return string

FAT() public method

public FAT ( IPartitionDevice partition ) : System
partition IPartitionDevice
return System

FindEntry() public method

public FindEntry ( FAT compare, uint startCluster ) : DirectoryEntryLocation
compare FAT
startCluster uint
return DirectoryEntryLocation

FindNthCluster() public method

public FindNthCluster ( uint start, uint count ) : uint
start uint
count uint
return uint

Format() public method

public Format ( FATSettings fatSettings ) : bool
fatSettings FATSettings
return bool

FreeClusterChain() protected method

protected FreeClusterChain ( uint first ) : bool
first uint
return bool

GetClusterBySector() protected method

protected GetClusterBySector ( uint sector ) : uint
sector uint
return uint

GetClusterEntry() static public method

static public GetClusterEntry ( byte data, uint index, FATType type ) : uint
data byte
index uint
type FATType
return uint

GetClusterEntryValue() protected method

protected GetClusterEntryValue ( uint cluster ) : uint
cluster uint
return uint

GetFileSize() public method

public GetFileSize ( uint directoryBlock, uint index ) : uint
directoryBlock uint
index uint
return uint

GetSectorsPerClusterByTotalSectors() public static method

public static GetSectorsPerClusterByTotalSectors ( FATType type, uint sectors ) : byte
type FATType
sectors uint
return byte

IsClusterBad() protected method

protected IsClusterBad ( uint cluster ) : bool
cluster uint
return bool

IsClusterFree() protected method

protected IsClusterFree ( uint cluster ) : bool
cluster uint
return bool

IsClusterLast() protected method

protected IsClusterLast ( uint cluster ) : bool
cluster uint
return bool

IsClusterReserved() protected method

protected IsClusterReserved ( uint cluster ) : bool
cluster uint
return bool

IsUsed() protected method

protected IsUsed ( uint cluster ) : bool
cluster uint
return bool

IsValidFatCharacter() protected static method

protected static IsValidFatCharacter ( char c ) : bool
c char
return bool

NextCluster() public method

public NextCluster ( uint start ) : uint
start uint
return uint

ReadBootSector() protected method

protected ReadBootSector ( ) : bool
return bool

ReadCluster() public method

public ReadCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
return bool

ReadCluster() public method

public ReadCluster ( uint cluster ) : byte[]
cluster uint
return byte[]

SetClusterEntryValue() protected method

protected SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool
cluster uint
nextcluster uint
return bool

WriteCluster() public method

public WriteCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
return bool