/** * Copies {@code count} longs from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does signed {@code int} to {@code long} conversion if running on * a 32-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(long[] dst, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} longs from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(long[] src, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { buf.put((int) src[i + offset]); } } } }
/** * Copies {@code count} ints from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. Does * signed {@code int} to {@code long} conversion if running on a 64-bit * platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(int[] src, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { buf.put(src[i + offset]); } } }
/** * Copies {@code count} longs from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does signed {@code int} to {@code long} conversion if running on * a 32-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(long[] dst, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { VM.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} longs from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does signed {@code int} to {@code long} conversion if running on * a 32-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(long[] dst, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = buf.get(); } } }
/** * Copies {@code count} longs from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does signed {@code int} to {@code long} conversion if running on * a 32-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(long[] dst, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = buf.get(); } } }
/** * Copies {@code count} ints from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 64-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(int[] dst, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).get(dst, offset, count); } else { Arrays.checkOffsetAndCount(dst.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = (int) buf.get(); } } }
/** * Copies {@code count} longs from the memory pointed to by this * {@link MachineSizedSIntPtr} to {@code dst} starting at offset {@code offset}. * Does signed {@code int} to {@code long} conversion if running on * a 32-bit platform. * * @param dst the destination. * @param offset the offset within the destination array to start copying to. * @param count the number of elements to copy. */ public void get(long[] dst, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).get(dst, offset, count); } else { VM.checkOffsetAndCount(dst.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { dst[i + offset] = buf.get(); } } }
/** * Copies {@code count} longs from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(long[] src, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { buf.put((int) src[i + offset]); } } } }
/** * Copies {@code count} ints from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. Does * signed {@code int} to {@code long} conversion if running on a 64-bit * platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(int[] src, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { buf.put(src[i + offset]); } } }
/** * Copies {@code count} longs from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(long[] src, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { buf.put((int) src[i + offset]); } } } }
/** * Copies {@code count} ints from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. Does * signed {@code int} to {@code long} conversion if running on a 64-bit * platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(int[] src, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { buf.put(src[i + offset]); } } }
/** * Copies {@code count} ints from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. Does * signed {@code int} to {@code long} conversion if running on a 64-bit * platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(int[] src, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).put(src, offset, count); } else { Arrays.checkOffsetAndCount(src.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { buf.put(src[i + offset]); } } }
/** * Copies {@code count} ints from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. Does * signed {@code int} to {@code long} conversion if running on a 64-bit * platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(int[] src, int offset, int count) { if (_sizeOf() == 4) { asIntBuffer(count).put(src, offset, count); } else { VM.checkOffsetAndCount(src.length, offset, count); LongBuffer buf = asLongBuffer(count); for (int i = 0; i < count; i++) { buf.put(src[i + offset]); } } }
/** * Copies {@code count} longs from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. * @param offset the offset within the source array to start copying from. * @param count the number of elements to copy. */ public void set(long[] src, int offset, int count) { if (_sizeOf() == 8) { asLongBuffer(count).put(src, offset, count); } else { VM.checkOffsetAndCount(src.length, offset, count); IntBuffer buf = asIntBuffer(count); for (int i = 0; i < count; i++) { buf.put((int) src[i + offset]); } } } }