C# Class VirtualFileSystem._SuperBlock

Afficher le fichier Open project: SummerWish/vfs Class Usage Examples

Méthodes publiques

Свойство Type Description
blockAllocated System.UInt32
blockCapacity System.UInt32
blockPreserved System.UInt32
blockSize System.UInt16
inodeAllocated System.UInt32
inodeCapacity System.UInt32
magicValue System.UInt16

Méthodes publiques

Méthode Description
IsValid ( ) : System.Boolean

是否是一个有效的结构

_SuperBlock ( UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : System

初始化一个全新的 SuperBlock

Method Details

IsValid() public méthode

是否是一个有效的结构
public IsValid ( ) : System.Boolean
Résultat System.Boolean

_SuperBlock() public méthode

初始化一个全新的 SuperBlock
public _SuperBlock ( UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : System
inodeCapacity System.UInt32
blockSize System.UInt16
blockCapacity System.UInt32
Résultat System

Property Details

blockAllocated public_oe property

已经实际分配了多少个数据块
public UInt32,System blockAllocated
Résultat System.UInt32

blockCapacity public_oe property

可以容纳多少个数据块
public UInt32,System blockCapacity
Résultat System.UInt32

blockPreserved public_oe property

已经预留了多少个数据块
public UInt32,System blockPreserved
Résultat System.UInt32

blockSize public_oe property

每个数据块大小
public UInt16,System blockSize
Résultat System.UInt16

inodeAllocated public_oe property

已经分配了多少个 inode
public UInt32,System inodeAllocated
Résultat System.UInt32

inodeCapacity public_oe property

可以容纳多少个 inode
public UInt32,System inodeCapacity
Résultat System.UInt32

magicValue public_oe property

有效标识符,必须为 0x1234 标识符放在最后,这样 SuperBlock 之前字段数量变更后就会要求重新格式化,避免潜在数据问题
public UInt16,System magicValue
Résultat System.UInt16