提交 2c3f2627 authored 作者: Thomas Mueller's avatar Thomas Mueller

Remove unused code.

上级 cd082a97
...@@ -92,19 +92,6 @@ public class Utils { ...@@ -92,19 +92,6 @@ public class Utils {
return ((long) (readInt(buff, pos)) << 32) + (readInt(buff, pos + 4) & 0xffffffffL); return ((long) (readInt(buff, pos)) << 32) + (readInt(buff, pos + 4) & 0xffffffffL);
} }
/**
* Write a long value to the byte array.
*
* @param buff the byte array
* @param pos the position
* @param x the value
*/
public static void writeLong(byte[] buff, int pos, long x) {
for (int i = 0; i < 8; i++) {
buff[pos + i] = (byte) ((x >> (8 * (8 - i))) & 255);
}
}
/** /**
* Calculate the index of the first occurrence of the pattern in the byte * Calculate the index of the first occurrence of the pattern in the byte
* array, starting with the given index. This methods returns -1 if the * array, starting with the given index. This methods returns -1 if the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论