C# Class VirtualFileSystem.VFS.File

显示文件 Open project: SummerWish/vfs

Public Properties

Property Type Description
name String
position System.UInt32

Public Methods

Method Description
File ( VFSCore vfs, String path, FileMode fileMode ) : System
Read ( byte array ) : UInt32

读取从当前位置开始所有数据

Read ( byte array, UInt32 offset, UInt32 count ) : UInt32

读取字节数据

Seek ( UInt32 position ) : void

移动文件指针

Size ( ) : UInt32

返回文件大小

Write ( byte array ) : void

写入字节数据

Write ( byte array, UInt32 offset, UInt32 count ) : void

写入字节数据

Private Methods

Method Description
CreateFile ( INodeDirectory dir, String name ) : void

通过创建一个新文件来初始化该类

OpenFile ( INodeDirectory dir, String name ) : void

通过打开现有文件来初始化该类

Method Details

File() public method

public File ( VFSCore vfs, String path, FileMode fileMode ) : System
vfs VFSCore
path String
fileMode FileMode
return System

Read() public method

读取从当前位置开始所有数据
public Read ( byte array ) : UInt32
array byte
return System.UInt32

Read() public method

读取字节数据
public Read ( byte array, UInt32 offset, UInt32 count ) : UInt32
array byte
offset System.UInt32
count System.UInt32
return System.UInt32

Seek() public method

移动文件指针
public Seek ( UInt32 position ) : void
position System.UInt32
return void

Size() public method

返回文件大小
public Size ( ) : UInt32
return System.UInt32

Write() public method

写入字节数据
public Write ( byte array ) : void
array byte
return void

Write() public method

写入字节数据
public Write ( byte array, UInt32 offset, UInt32 count ) : void
array byte
offset System.UInt32
count System.UInt32
return void

Property Details

name public_oe property

public String name
return String

position public_oe property

public UInt32,System position
return System.UInt32