当前位置: 首页>>代码示例>>Java>>正文


Java VM.arraycopyPrimitive0方法代码示例

本文整理汇总了Java中com.sun.squawk.VM.arraycopyPrimitive0方法的典型用法代码示例。如果您正苦于以下问题:Java VM.arraycopyPrimitive0方法的具体用法?Java VM.arraycopyPrimitive0怎么用?Java VM.arraycopyPrimitive0使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.squawk.VM的用法示例。


在下文中一共展示了VM.arraycopyPrimitive0方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: unchecked_char_arraycopy

import com.sun.squawk.VM; //导入方法依赖的package包/类
public static void unchecked_char_arraycopy(char[] src,
        int srcOffset,
        char[] dst,
        int dstOffset,
        int length) {
    VM.arraycopyPrimitive0(src, srcOffset, dst, dstOffset, length, 2);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:8,代码来源:JVM.java

示例2: unchecked_int_arraycopy

import com.sun.squawk.VM; //导入方法依赖的package包/类
public static void unchecked_int_arraycopy(int[] src,
        int srcOffset,
        int[] dst,
        int dstOffset,
        int length) {
    VM.arraycopyPrimitive0(src, srcOffset, dst, dstOffset, length, 4);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:8,代码来源:JVM.java

示例3: unchecked_long_arraycopy

import com.sun.squawk.VM; //导入方法依赖的package包/类
public static void unchecked_long_arraycopy(long[] src,
        int srcOffset,
        long[] dst,
        int dstOffset,
        int length) {
    VM.arraycopyPrimitive0(src, srcOffset, dst, dstOffset, length, 8);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:8,代码来源:JVM.java

示例4: unchecked_byte_arraycopy

import com.sun.squawk.VM; //导入方法依赖的package包/类
/**
 * Copy an array from the specified source array, beginning at the
 * specified position, to the specified position of the destination array.
 * <p>
 * Impose the following restrictions on the input arguments:
 * <ul>
 * <li><code>dst</code> is not <code>null</code>.
 * <li><code>src</code> is not <code>null</code>.
 * <li>The <code>srcOffset</code> argument is not negative.
 * <li>The <code>dstOffset</code> argument is not negative.
 * <li>The <code>length</code> argument is not negative.
 * <li><code>srcOffset+length</code> is not greater than
 *     <code>src.length</code>, the length of the source array.
 * <li><code>dstOffset+length</code> is not greater than
 *     <code>dst.length</code>, the length of the destination array.
 * <li>any actual component of the source array from position 
 *     <code>srcOffset</code> through <code>srcOffset+length-1</code> 
 *     can be converted to the component type of the destination array
 * </ul>
 * <p>
 * The caller is responsible that these restrictions are not violated.
 * If any of the restrictions above is violated, the behavior is undefined.
 *
 * @param      src          the source array.
 * @param      srcOffset    start position in the source array.
 * @param      dst          the destination array.
 * @param      dstOffset    start position in the destination data.
 * @param      length       the number of array elements to be copied.
 */
public static void unchecked_byte_arraycopy(byte[] src,
        int srcOffset,
        byte[] dst,
        int dstOffset,
        int length) {
    VM.arraycopyPrimitive0(src, srcOffset, dst, dstOffset, length, 1);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:37,代码来源:JVM.java


注:本文中的com.sun.squawk.VM.arraycopyPrimitive0方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。