/** * Copies {@code count} objects from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link Ptr}. * * @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(S[] src, int offset, int count) { int ptrSize = _sizeOf(); long ptr = getHandle() + ptrSize * offset; for (int i = 0; i < count; i++) { S o = src[i]; VM.setPointer(ptr, o == null ? 0L : o.getHandle()); ptr += ptrSize; } }
/** * Copies {@code src.length} objects from {@code src} to the memory pointed * to by this {@link Ptr}. * * @param src the source. */ public void set(S[] src) { set(src, 0, src.length); }
@SuppressWarnings("unchecked") public T set(long handle) { setValue(handle); return (T) this; }
/** * Copies {@code count} objects from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link Ptr}. * * @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(S[] src, int offset, int count) { int ptrSize = _sizeOf(); long ptr = getHandle() + ptrSize * offset; for (int i = 0; i < count; i++) { S o = src[i]; VM.setPointer(ptr, o == null ? 0L : o.getHandle()); ptr += ptrSize; } }
@SuppressWarnings("unchecked") public T set(long handle) { setValue(handle); return (T) this; }
/** * Copies {@code src.length} objects from {@code src} to the memory pointed * to by this {@link Ptr}. * * @param src the source. */ public void set(S[] src) { set(src, 0, src.length); }
/** * Copies {@code count} objects from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link Ptr}. * * @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(S[] src, int offset, int count) { int ptrSize = _sizeOf(); long ptr = getHandle() + ptrSize * offset; for (int i = 0; i < count; i++) { S o = src[i]; VM.setPointer(ptr, o == null ? 0L : o.getHandle()); ptr += ptrSize; } }
@SuppressWarnings("unchecked") public T set(long handle) { setValue(handle); return (T) this; }
/** * Copies {@code src.length} objects from {@code src} to the memory pointed * to by this {@link Ptr}. * * @param src the source. */ public void set(S[] src) { set(src, 0, src.length); }
/** * Copies {@code count} objects from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link Ptr}. * * @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(S[] src, int offset, int count) { int ptrSize = _sizeOf(); long ptr = getHandle() + ptrSize * offset; for (int i = 0; i < count; i++) { S o = src[i]; VM.setPointer(ptr, o == null ? 0L : o.getHandle()); ptr += ptrSize; } }
@SuppressWarnings("unchecked") public T set(long handle) { setValue(handle); return (T) this; }
/** * Copies {@code src.length} objects from {@code src} to the memory pointed * to by this {@link Ptr}. * * @param src the source. */ public void set(S[] src) { set(src, 0, src.length); }
/** * Copies {@code count} objects from {@code src} starting at offset {@code offset} * to the memory pointed to by this {@link Ptr}. * * @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(S[] src, int offset, int count) { int ptrSize = _sizeOf(); long ptr = getHandle() + ptrSize * offset; for (int i = 0; i < count; i++) { S o = src[i]; VM.setPointer(ptr, o == null ? 0L : o.getHandle()); ptr += ptrSize; } }
@SuppressWarnings("unchecked") public T set(long handle) { setValue(handle); return (T) this; }