修复数组拼接的 bug
parent
424194d67b
commit
62fd1b900f
|
@ -180,7 +180,7 @@ public class ArrayTools {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (float[] arr : arrays) {
|
for (float[] arr : arrays) {
|
||||||
System.arraycopy(arr, 0, result, i, arr.length);
|
System.arraycopy(arr, 0, result, i, arr.length);
|
||||||
i = arr.length;
|
i += arr.length;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ public class ArrayTools {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (double[] arr : arrays) {
|
for (double[] arr : arrays) {
|
||||||
System.arraycopy(arr, 0, result, i, arr.length);
|
System.arraycopy(arr, 0, result, i, arr.length);
|
||||||
i = arr.length;
|
i += arr.length;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ public class ArrayTools {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (byte[] arr : arrays) {
|
for (byte[] arr : arrays) {
|
||||||
System.arraycopy(arr, 0, result, i, arr.length);
|
System.arraycopy(arr, 0, result, i, arr.length);
|
||||||
i = arr.length;
|
i += arr.length;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ public class ArrayTools {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (long[] arr : arrays) {
|
for (long[] arr : arrays) {
|
||||||
System.arraycopy(arr, 0, result, i, arr.length);
|
System.arraycopy(arr, 0, result, i, arr.length);
|
||||||
i = arr.length;
|
i += arr.length;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,7 @@ public class ArrayTools {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (int[] arr : arrays) {
|
for (int[] arr : arrays) {
|
||||||
System.arraycopy(arr, 0, result, i, arr.length);
|
System.arraycopy(arr, 0, result, i, arr.length);
|
||||||
i = arr.length;
|
i += arr.length;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue