inode.java

来自「操作系统课内实验部分」· Java 代码 · 共 22 行

JAVA
22
字号
/** * TO DO: This class has to add getter/setter methods for the data elements * to allow the elements to be declared as private * */class Inode {	public final static int SIZE = 64;	// size in bytes	int flags;	int owner;	int fileSize;	int pointer[] = new int[13];	public String toString() {		String s = "[Flags: " + flags		+ "  Size: " + fileSize + "  ";		for (int i = 0; i < 13; i++) 			s += "|" + pointer[i];		return s + "]";	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?