提交 ac71f448 编写于 作者: H huanghaiquan

added new method to BytesUtils;

上级 3886f068
......@@ -704,6 +704,22 @@ public class BytesUtils {
return bytesAll;
}
public static char[] concat(char[]... bytesList) {
int size = 0;
for (char[] bs : bytesList) {
size += bs.length;
}
char[] bytesAll = new char[size];
size = 0;
for (char[] bs : bytesList) {
System.arraycopy(bs, 0, bytesAll, size, bs.length);
size += bs.length;
}
return bytesAll;
}
public static long toLong(ByteArray byteArray) {
return toLong(byteArray.bytes());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册