C# Класс Mosa.FileSystem.FAT.VfsFile

Наследование: Mosa.FileSystem.VFS.NodeBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
directoryIndex uint
directorySector uint
fileCluster uint

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

Метод Описание
Create ( string name, VfsNodeType type, object settings ) : IVfsNode

Creates a new file system entry of the given name and type.

In theory every file system should support any VfsNodeType. Standard objects, such as directories and files are obvious. For other objects however, the file system is encouraged to store the passed settings in a specially marked file and treat these files as the appropriate node type. Instances of these objects can be retrieved using VfsObjectFactory.Create(settings). Access rights do not need to be checked by the node implementation. They have been already been checked by the VirtualFileSystem itself.

Delete ( IVfsNode child, DirectoryEntry dentry ) : void

Called to delete a child from a directory.

This function deletes a child IVfsNode from a directory. If child is a directory, it will be empty before this call is executed. It is recommended to include a debug sanity check though. If the file system needs to know the name of the child to delete, it can retrieve it from DirectoryEntry.Name.

Lookup ( string name ) : IVfsNode

Requests the IVfsNode to perform a lookup on its children.

Open ( FileAccess access, FileShare sharing ) : object

Opens the specified access.

VfsFile ( IFileSystem fs, uint fileCluster, uint directorySector, uint directoryIndex ) : System.IO

Initializes a new instance of the VfsFile class.

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

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

Creates a new file system entry of the given name and type.
In theory every file system should support any VfsNodeType. Standard objects, such as directories and files are obvious. For other objects however, the file system is encouraged to store the passed settings in a specially marked file and treat these files as the appropriate node type. Instances of these objects can be retrieved using VfsObjectFactory.Create(settings). Access rights do not need to be checked by the node implementation. They have been already been checked by the VirtualFileSystem itself.
The specified node type is not supported in the file system owning the node. See remarks about this.
public Create ( string name, VfsNodeType type, object settings ) : IVfsNode
name string The name of the file system entry to create.
type VfsNodeType The type of the file system entry. See remarks.
settings object Potential settings for the file systeme entry.
Результат IVfsNode

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

Called to delete a child from a directory.
This function deletes a child IVfsNode from a directory. If child is a directory, it will be empty before this call is executed. It is recommended to include a debug sanity check though. If the file system needs to know the name of the child to delete, it can retrieve it from DirectoryEntry.Name.
The object does not support removal this way. There's most likely an object specific API to remove this IVfsNode.
public Delete ( IVfsNode child, DirectoryEntry dentry ) : void
child IVfsNode The IVfsNode interface of the child.
dentry Mosa.FileSystem.VFS.DirectoryEntry The DirectoryEntry of the child.
Результат void

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

Requests the IVfsNode to perform a lookup on its children.
public Lookup ( string name ) : IVfsNode
name string The name of the item to find.
Результат IVfsNode

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

Opens the specified access.
public Open ( FileAccess access, FileShare sharing ) : object
access FileAccess The access.
sharing FileShare The sharing.
Результат object

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

Initializes a new instance of the VfsFile class.
public VfsFile ( IFileSystem fs, uint fileCluster, uint directorySector, uint directoryIndex ) : System.IO
fs IFileSystem The fs.
fileCluster uint The file cluster.
directorySector uint The directory sector.
directoryIndex uint Index of the directory.
Результат System.IO

Описание свойств

directoryIndex защищенное свойство

protected uint directoryIndex
Результат uint

directorySector защищенное свойство

protected uint directorySector
Результат uint

fileCluster защищенное свойство

protected uint fileCluster
Результат uint