📄 coder.java
字号:
// FrontEnd Plus for JAD
// DeCompiled : coder.class
package utils;
public class coder//编码
{
protected int len;//长度
protected int offset;//偏移量
protected int size;//大小
protected int step;//每次增加的长度
protected byte bytes[];//字节数组
protected void increase(int i)//按照step增加长度
{
if(i < step)
i = step;
int j = size + i;
byte abyte0[] = new byte[j];
for(int k = 0; k < size; k++)
abyte0[k] = bytes[k];
bytes = abyte0;
size = j;
}
public int lenfix(byte byte0)
{
if(byte0 >= 0)
return byte0;
else
return byte0 + 256;
}
public int lenfix(int i)
{
return i;
}
protected coder(int i)
{
len = 0;
offset = 0;
if(i == 0)
i = 500;
size = i;
step = i;
bytes = new byte[size];
}
protected coder(byte abyte0[])
{
size = abyte0.length;
bytes = abyte0;
len = abyte0.length;
offset = 0;
step = 500;
}
public String toString()//变换成16个字符一行的16进制ASCII码
{
String s = "Size:" + size + " Len:" + len + " Offset:" + offset + " Step:" + step;
for(int j = 0; j < len; j++)
{
if(j % 16 == 0)
s = s + "\n ";
int i = bytes[j] & 0xff;
if(i < 16)
s = s + '0';
s = s + Integer.toHexString(i) + " ";
}
s = s + "\n";
return s;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -