C# Class VirtualFileSystem.SuperBlock

Show file Open project: SummerWish/vfs Class Usage Examples

Public Properties

Property Type Description
data _SuperBlock
pBlockBitVectors System.UInt32
pBlockData System.UInt32
pInodeBitVectors System.UInt32
pInodeData System.UInt32

Public Methods

Method Description
Create ( VFSCore vfs, UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : SuperBlock

创建一个全新的 SuperBlock

Load ( VFSCore vfs ) : SuperBlock

从存储介质上还原 SuperBlock

Save ( ) : void

将 superblock 写入存储介质

SuperBlock ( VFSCore vfs, _SuperBlock data ) : System
ToString ( ) : String

转换为字符串

Private Methods

Method Description
init ( ) : void

根据有效的持久化数据初始化整个结构

Method Details

Create() public static method

创建一个全新的 SuperBlock
public static Create ( VFSCore vfs, UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : SuperBlock
vfs VFSCore
inodeCapacity System.UInt32
blockSize System.UInt16
blockCapacity System.UInt32
return SuperBlock

Load() public static method

从存储介质上还原 SuperBlock
public static Load ( VFSCore vfs ) : SuperBlock
vfs VFSCore
return SuperBlock

Save() public method

将 superblock 写入存储介质
public Save ( ) : void
return void

SuperBlock() public method

public SuperBlock ( VFSCore vfs, _SuperBlock data ) : System
vfs VFSCore
data _SuperBlock
return System

ToString() public method

转换为字符串
public ToString ( ) : String
return String

Property Details

data public property

可持久化数据
public _SuperBlock,VirtualFileSystem data
return _SuperBlock

pBlockBitVectors public property

数据块位图起始地址
public UInt32,System pBlockBitVectors
return System.UInt32

pBlockData public property

数据块区起始地址
public UInt32,System pBlockData
return System.UInt32

pInodeBitVectors public property

inode 位图起始地址
public UInt32,System pInodeBitVectors
return System.UInt32

pInodeData public property

inode 区起始地址
public UInt32,System pInodeData
return System.UInt32