arraycopy() appi
2012-08-06 14:19
127 查看
/**
* Copies {@code length} elements from the array {@code src},
* starting at offset {@code srcPos}, into the array {@code dst},
* starting at offset {@code dstPos}.
*
* @param src
* the source array to copy the content.
* @param srcPos
* the starting index of the content in {@code src}.
* @param dst
* the destination array to copy the data into.
* @param dstPos
* the starting index for the copied content in {@code dst}.
* @param length
* the number of elements to be copied.
*/
public static native void arraycopy(Object src, int srcPos, Object dst, int dstPos, int length);
中文意思是:
从数组src的第srcPos个元素开始,顺数复制length个元素到数组dst第dstPos个位置处。(原来数组dst第dstPos个位置处以及其后的元素将会安排到新插入的元素之后)
* Copies {@code length} elements from the array {@code src},
* starting at offset {@code srcPos}, into the array {@code dst},
* starting at offset {@code dstPos}.
*
* @param src
* the source array to copy the content.
* @param srcPos
* the starting index of the content in {@code src}.
* @param dst
* the destination array to copy the data into.
* @param dstPos
* the starting index for the copied content in {@code dst}.
* @param length
* the number of elements to be copied.
*/
public static native void arraycopy(Object src, int srcPos, Object dst, int dstPos, int length);
中文意思是:
从数组src的第srcPos个元素开始,顺数复制length个元素到数组dst第dstPos个位置处。(原来数组dst第dstPos个位置处以及其后的元素将会安排到新插入的元素之后)
相关文章推荐
- java例程练习(数组复制与arraycopy)
- [Java] arraycopy 数组复制(转)
- arraycopy 复制数组
- Java中的数组复制(clone与arraycopy)代码详解
- arraycopy效率比较
- Java基础知识强化85:System类之arraycopy()方法(数组拷贝)
- 常见对象_System类中的arraycopy()的讲解
- StubRoutimes::jlong_disjoint_arraycopy
- arraycopy效率比较
- Hexagon SDK之Audio APPI详解
- java数组赋值中的arraycopy和=的区别
- java语言-基础(java System类中的arraycopy方法)
- java数组复制(arraycopy)
- 4、JAVA中字符串的拷贝、arraycopy()的用法
- 改动项目APP名字后,在真机执行报错:The provisioning profile specified in your build settings (“haotian”) has an AppI
- System类-arraycopy()
- 关于Java中arraycopy的用法
- arraycopy
- java性能优化开发之--使用ArrayCopy进行复制
- Java学习之System.arraycopy()方法