本文整理了Java中java.lang.System.arraycopyCheckBounds()
方法的一些代码示例,展示了System.arraycopyCheckBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.arraycopyCheckBounds()
方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:arraycopyCheckBounds
暂无
代码示例来源:origin: robovm/robovm
private static void arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(short[] src, int srcPos, short[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
代码示例来源:origin: robovm/robovm
private static void arraycopy(Object[] src, int srcPos, Object[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
if (length > 0) {
// TODO: Use arraycopyFast() if src.class and dst.class have same dimensionality and (src instanceof dst)
int i = 0;
try {
// Check if this is a forward or backwards arraycopy
if (src != dst || srcPos > dstPos || srcPos + length <= dstPos) {
for (i = 0; i < length; ++i) {
dst[dstPos + i] = src[srcPos + i];
}
} else {
for (i = length - 1; i >= 0; --i) {
dst[dstPos + i] = src[srcPos + i];
}
}
} catch (ArrayStoreException e) {
// Throw a new one with a more descriptive message.
Class<?> srcElemClass = src[i + srcPos].getClass();
String srcElemTypeName = srcElemClass.isArray()
? srcElemClass.getCanonicalName() : srcElemClass.getName();
throw new ArrayStoreException(String.format(
"source[%d] of type %s cannot be stored in destination array of type %s",
i + srcPos, srcElemTypeName, dst.getClass().getCanonicalName()));
}
}
}
代码示例来源:origin: MobiVM/robovm
private static void arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
代码示例来源:origin: MobiVM/robovm
private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
代码示例来源:origin: MobiVM/robovm
private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
代码示例来源:origin: MobiVM/robovm
private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
代码示例来源:origin: ibinti/bugvm
private static void arraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
代码示例来源:origin: ibinti/bugvm
private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
代码示例来源:origin: ibinti/bugvm
private static void arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
代码示例来源:origin: com.bugvm/bugvm-rt
private static void arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
代码示例来源:origin: com.bugvm/bugvm-rt
private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
内容来源于网络,如有侵权,请联系作者删除!