entryclassindex.java
来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 38 行
JAVA
38 行
package js.tinyvm;import java.io.IOException;import js.tinyvm.io.IByteWriter;public class EntryClassIndex implements WritableData{ String iClassName; Binary iBinary; public EntryClassIndex (Binary aBinary, String aClassName) { iBinary = aBinary; iClassName = aClassName; } public int getLength () { return 1; } public void dump (IByteWriter aOut) throws TinyVMException { try { int pIndex = iBinary.getClassIndex(iClassName); assert pIndex >= 0 && pIndex < 256: "Check: class index in range"; aOut.writeU1(pIndex); } catch (IOException e) { throw new TinyVMException(e.getMessage(), e); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?