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

Inheritance: SharpOS.Kernel.FileSystem.GenericFileSystem
Afficher le fichier Open project: sharpos/SharpOS Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

protected AllocateCluster ( ) : uint
Résultat uint

CreateVFSMount() public méthode

public CreateVFSMount ( ) : IFileSystem
Résultat IFileSystem

Delete() public méthode

public Delete ( uint childBlock, uint parentBlock, uint parentBlockIndex ) : void
childBlock uint
parentBlock uint
parentBlockIndex uint
Résultat void

ExtractFileName() public static méthode

public static ExtractFileName ( byte directory, uint index ) : string
directory byte
index uint
Résultat string

FAT() public méthode

public FAT ( IPartitionDevice partition ) : System
partition IPartitionDevice
Résultat System

FindEntry() public méthode

public FindEntry ( FAT compare, uint startCluster ) : DirectoryEntryLocation
compare FAT
startCluster uint
Résultat DirectoryEntryLocation

FindNthCluster() public méthode

public FindNthCluster ( uint start, uint count ) : uint
start uint
count uint
Résultat uint

Format() public méthode

public Format ( FATSettings fatSettings ) : bool
fatSettings FATSettings
Résultat bool

FreeClusterChain() protected méthode

protected FreeClusterChain ( uint first ) : bool
first uint
Résultat bool

GetClusterBySector() protected méthode

protected GetClusterBySector ( uint sector ) : uint
sector uint
Résultat uint

GetClusterEntry() static public méthode

static public GetClusterEntry ( byte data, uint index, FATType type ) : uint
data byte
index uint
type FATType
Résultat uint

GetClusterEntryValue() protected méthode

protected GetClusterEntryValue ( uint cluster ) : uint
cluster uint
Résultat uint

GetFileSize() public méthode

public GetFileSize ( uint directoryBlock, uint index ) : uint
directoryBlock uint
index uint
Résultat uint

GetSectorsPerClusterByTotalSectors() public static méthode

public static GetSectorsPerClusterByTotalSectors ( FATType type, uint sectors ) : byte
type FATType
sectors uint
Résultat byte

IsClusterBad() protected méthode

protected IsClusterBad ( uint cluster ) : bool
cluster uint
Résultat bool

IsClusterFree() protected méthode

protected IsClusterFree ( uint cluster ) : bool
cluster uint
Résultat bool

IsClusterLast() protected méthode

protected IsClusterLast ( uint cluster ) : bool
cluster uint
Résultat bool

IsClusterReserved() protected méthode

protected IsClusterReserved ( uint cluster ) : bool
cluster uint
Résultat bool

IsUsed() protected méthode

protected IsUsed ( uint cluster ) : bool
cluster uint
Résultat bool

IsValidFatCharacter() protected static méthode

protected static IsValidFatCharacter ( char c ) : bool
c char
Résultat bool

NextCluster() public méthode

public NextCluster ( uint start ) : uint
start uint
Résultat uint

ReadBootSector() protected méthode

protected ReadBootSector ( ) : bool
Résultat bool

ReadCluster() public méthode

public ReadCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
Résultat bool

ReadCluster() public méthode

public ReadCluster ( uint cluster ) : byte[]
cluster uint
Résultat byte[]

SetClusterEntryValue() protected méthode

protected SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool
cluster uint
nextcluster uint
Résultat bool

WriteCluster() public méthode

public WriteCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
Résultat bool