/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { Arrays.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { Arrays.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { Arrays.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { Arrays.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { Arrays.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { Arrays.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { Arrays.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }
/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { Arrays.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { Arrays.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { VM.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to {@code dst} starting at offset {@code offset}. * * @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(boolean[] dst, int offset, int count) { Arrays.checkOffsetAndCount(dst.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { dst[i + offset] = VM.getByte(h++) != 0; } }
/** * Copies {@code count} {@code boolean}s from {@code src} starting at offset * {@code offset} to the memory pointed to by this {@link BooleanPtr}. * * @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(boolean[] src, int offset, int count) { VM.checkOffsetAndCount(src.length, offset, count); long h = getHandle(); for (int i = 0; i < count; i++) { VM.setByte(h++, (byte) (src[i + offset] ? 1 : 0)); } } }