C# Класс SharpOS.Kernel.FileSystem.FATFileSystem.FAT

Наследование: SharpOS.Kernel.FileSystem.GenericFileSystem
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

AllocateCluster() защищенный Метод

protected AllocateCluster ( ) : uint
Результат uint

CreateVFSMount() публичный Метод

public CreateVFSMount ( ) : IFileSystem
Результат IFileSystem

Delete() публичный Метод

public Delete ( uint childBlock, uint parentBlock, uint parentBlockIndex ) : void
childBlock uint
parentBlock uint
parentBlockIndex uint
Результат void

ExtractFileName() публичный статический Метод

public static ExtractFileName ( byte directory, uint index ) : string
directory byte
index uint
Результат string

FAT() публичный Метод

public FAT ( IPartitionDevice partition ) : System
partition IPartitionDevice
Результат System

FindEntry() публичный Метод

public FindEntry ( FAT compare, uint startCluster ) : DirectoryEntryLocation
compare FAT
startCluster uint
Результат DirectoryEntryLocation

FindNthCluster() публичный Метод

public FindNthCluster ( uint start, uint count ) : uint
start uint
count uint
Результат uint

Format() публичный Метод

public Format ( FATSettings fatSettings ) : bool
fatSettings FATSettings
Результат bool

FreeClusterChain() защищенный Метод

protected FreeClusterChain ( uint first ) : bool
first uint
Результат bool

GetClusterBySector() защищенный Метод

protected GetClusterBySector ( uint sector ) : uint
sector uint
Результат uint

GetClusterEntry() статический публичный Метод

static public GetClusterEntry ( byte data, uint index, FATType type ) : uint
data byte
index uint
type FATType
Результат uint

GetClusterEntryValue() защищенный Метод

protected GetClusterEntryValue ( uint cluster ) : uint
cluster uint
Результат uint

GetFileSize() публичный Метод

public GetFileSize ( uint directoryBlock, uint index ) : uint
directoryBlock uint
index uint
Результат uint

GetSectorsPerClusterByTotalSectors() публичный статический Метод

public static GetSectorsPerClusterByTotalSectors ( FATType type, uint sectors ) : byte
type FATType
sectors uint
Результат byte

IsClusterBad() защищенный Метод

protected IsClusterBad ( uint cluster ) : bool
cluster uint
Результат bool

IsClusterFree() защищенный Метод

protected IsClusterFree ( uint cluster ) : bool
cluster uint
Результат bool

IsClusterLast() защищенный Метод

protected IsClusterLast ( uint cluster ) : bool
cluster uint
Результат bool

IsClusterReserved() защищенный Метод

protected IsClusterReserved ( uint cluster ) : bool
cluster uint
Результат bool

IsUsed() защищенный Метод

protected IsUsed ( uint cluster ) : bool
cluster uint
Результат bool

IsValidFatCharacter() защищенный статический Метод

protected static IsValidFatCharacter ( char c ) : bool
c char
Результат bool

NextCluster() публичный Метод

public NextCluster ( uint start ) : uint
start uint
Результат uint

ReadBootSector() защищенный Метод

protected ReadBootSector ( ) : bool
Результат bool

ReadCluster() публичный Метод

public ReadCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
Результат bool

ReadCluster() публичный Метод

public ReadCluster ( uint cluster ) : byte[]
cluster uint
Результат byte[]

SetClusterEntryValue() защищенный Метод

protected SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool
cluster uint
nextcluster uint
Результат bool

WriteCluster() публичный Метод

public WriteCluster ( uint cluster, byte block ) : bool
cluster uint
block byte
Результат bool