📄 indexrecord.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: IndexRecord.java
package jxl.write.biff;
import jxl.biff.*;
class IndexRecord extends WritableRecordData
{
private byte data[];
private int rows;
private int bofPosition;
private int blocks;
private int dataPos;
public IndexRecord(int pos, int r, int bl)
{
super(Type.INDEX);
bofPosition = pos;
rows = r;
blocks = bl;
data = new byte[16 + 4 * blocks];
dataPos = 16;
}
protected byte[] getData()
{
IntegerHelper.getFourBytes(rows, data, 8);
return data;
}
void addBlockPosition(int pos)
{
IntegerHelper.getFourBytes(pos - bofPosition, data, dataPos);
dataPos += 4;
}
void setDataStartPosition(int pos)
{
IntegerHelper.getFourBytes(pos - bofPosition, data, 12);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -