Property | Type | Description | |
---|---|---|---|
lastFreeHint | uint |
Method | Description | |
---|---|---|
AddCluster ( uint lastCluster ) : uint |
Adds the cluster.
|
|
AllocateFirstCluster ( uint directorySector, uint directorySectorIndex ) : uint |
Allocates the first cluster.
|
|
CreateFile ( string filename, FatFileAttributes fileAttributes ) : |
Creates the file.
|
|
CreateFile ( string filename, FatFileAttributes fileAttributes, uint directoryCluster ) : |
Creates the file.
|
|
CreateVFSMount ( ) : IFileSystem |
Creates the VFS mount.
|
|
Delete ( uint targetCluster, uint directorySector, uint directorySectorIndex ) : void |
Deletes the specified file or directory
|
|
FatFileSystem ( IPartitionDevice partition ) : Mosa.ClassLib |
Initializes a new instance of the FatFileSystem class.
|
|
FindEntry ( string name ) : |
||
FindNthCluster ( uint start, uint count ) : uint |
Finds the Nth cluster.
|
|
Format ( |
Formats the partition with specified fat settings.
|
|
GetFileSize ( uint directoryBlock, uint index ) : uint |
Gets the size of the file.
|
|
GetNextCluster ( uint start ) : uint |
Gets the next cluster.
|
|
GetSectorByCluster ( uint cluster ) : uint |
Gets the sector by cluster.
|
|
GetSectorsPerClusterByTotalSectors ( FatType type, uint sectors ) : byte |
Gets the sectors per cluster by total sectors.
|
|
ReadCluster ( uint cluster, byte block ) : bool |
Reads the cluster.
|
|
ReadCluster ( uint cluster ) : byte[] |
Reads the cluster.
|
|
SetVolumeName ( string volumeName ) : void |
Sets the name of the volume.
|
|
UpdateLength ( uint size, uint firstCluster, uint directorySector, uint directorySectorIndex ) : void |
Updates the length.
|
|
WriteCluster ( uint cluster, byte block ) : bool |
Writes the cluster.
|
Method | Description | |
---|---|---|
AllocateCluster ( ) : uint |
Allocates the cluster.
|
|
FreeClusterChain ( uint firstCluster ) : bool |
Frees the cluster chain.
|
|
GetClusterBySector ( uint sector ) : uint |
Gets the cluster by sector.
|
|
GetClusterEntryValue ( uint cluster ) : uint |
Gets the cluster entry value.
|
|
IsClusterBad ( uint cluster ) : bool |
Determines whether [is cluster bad] [the specified cluster].
|
|
IsClusterFree ( uint cluster ) : bool |
Determines whether [is cluster free] [the specified cluster].
|
|
IsClusterLast ( uint cluster ) : bool |
Determines whether [is cluster last] [the specified cluster].
|
|
IsClusterReserved ( uint cluster ) : bool |
Determines whether [is cluster reserved] [the specified cluster].
|
|
IsValidFatCharacter ( char c ) : bool |
Determines whether [is valid fat character] [the specified c].
|
|
ReadBootSector ( ) : bool |
Reads the boot sector.
|
|
SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool |
Sets the cluster entry value.
|
Method | Description | |
---|---|---|
ExtractFileName ( byte directory, uint index ) : string |
Extracts the name of the file.
|
|
FindEntry ( |
Finds the entry.
|
|
GetClusterEntry ( byte data, uint index, FatType type ) : uint |
Gets the cluster entry.
|
public AddCluster ( uint lastCluster ) : uint | ||
lastCluster | uint | The last cluster. |
return | uint |
public AllocateFirstCluster ( uint directorySector, uint directorySectorIndex ) : uint | ||
directorySector | uint | The directory sector. |
directorySectorIndex | uint | Index of the directory sector. |
return | uint |
public CreateFile ( string filename, FatFileAttributes fileAttributes ) : |
||
filename | string | The filename. |
fileAttributes | FatFileAttributes | The file attributes. |
return |
public CreateFile ( string filename, FatFileAttributes fileAttributes, uint directoryCluster ) : |
||
filename | string | The filename. |
fileAttributes | FatFileAttributes | The file attributes. |
directoryCluster | uint | The directory cluster. |
return |
public Delete ( uint targetCluster, uint directorySector, uint directorySectorIndex ) : void | ||
targetCluster | uint | The target cluster. |
directorySector | uint | The directory sector. |
directorySectorIndex | uint | Index of the directory sector. |
return | void |
public FatFileSystem ( IPartitionDevice partition ) : Mosa.ClassLib | ||
partition | IPartitionDevice | The partition. |
return | Mosa.ClassLib |
public FindEntry ( string name ) : |
||
name | string | |
return |
public FindNthCluster ( uint start, uint count ) : uint | ||
start | uint | The start. |
count | uint | The count. |
return | uint |
public Format ( |
||
fatSettings | The fat settings. | |
return | bool |
protected FreeClusterChain ( uint firstCluster ) : bool | ||
firstCluster | uint | The first cluster. |
return | bool |
protected GetClusterBySector ( uint sector ) : uint | ||
sector | uint | The sector. |
return | uint |
protected GetClusterEntryValue ( uint cluster ) : uint | ||
cluster | uint | The cluster. |
return | uint |
public GetFileSize ( uint directoryBlock, uint index ) : uint | ||
directoryBlock | uint | The directory block. |
index | uint | The index. |
return | uint |
public GetNextCluster ( uint start ) : uint | ||
start | uint | The start. |
return | uint |
public GetSectorByCluster ( uint cluster ) : uint | ||
cluster | uint | The cluster. |
return | uint |
public static GetSectorsPerClusterByTotalSectors ( FatType type, uint sectors ) : byte | ||
type | FatType | The type. |
sectors | uint | The sectors. |
return | byte |
protected IsClusterBad ( uint cluster ) : bool | ||
cluster | uint | The cluster. |
return | bool |
protected IsClusterFree ( uint cluster ) : bool | ||
cluster | uint | The cluster. |
return | bool |
protected IsClusterLast ( uint cluster ) : bool | ||
cluster | uint | The cluster. |
return | bool |
protected IsClusterReserved ( uint cluster ) : bool | ||
cluster | uint | The cluster. |
return | bool |
protected static IsValidFatCharacter ( char c ) : bool | ||
c | char | The c. |
return | bool |
public ReadCluster ( uint cluster, byte block ) : bool | ||
cluster | uint | The cluster. |
block | byte | The block. |
return | bool |
public ReadCluster ( uint cluster ) : byte[] | ||
cluster | uint | The cluster. |
return | byte[] |
protected SetClusterEntryValue ( uint cluster, uint nextcluster ) : bool | ||
cluster | uint | The cluster. |
nextcluster | uint | The next cluster. |
return | bool |
public SetVolumeName ( string volumeName ) : void | ||
volumeName | string | Name of the volume. |
return | void |
public UpdateLength ( uint size, uint firstCluster, uint directorySector, uint directorySectorIndex ) : void | ||
size | uint | The size. |
firstCluster | uint | The first cluster. |
directorySector | uint | The directory sector. |
directorySectorIndex | uint | Index of the directory sector. |
return | void |
public WriteCluster ( uint cluster, byte block ) : bool | ||
cluster | uint | The cluster. |
block | byte | The block. |
return | bool |