public void setValue(long value) { getPointer().setLong(0, value); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.setLong</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#setLong */ @Override public void setLong(long offset, long value) { boundsCheck(offset, 8); super.setLong(offset, value); }
/** * Set <code>value</code> at location being pointed to. This is equivalent * to the expression * <code>*((long *)((char *)Pointer + offset)) = value</code>. * * @param offset byte offset from pointer at which <code>value</code> * must be set * @param value <code>long</code> value to set */ public void setNativeLong(long offset, NativeLong value) { if (NativeLong.SIZE == 8) { setLong(offset, value.longValue()); } else { setInt(offset, value.intValue()); } }
setInt(offset, value == null ? 0 : ((Integer)value).intValue()); } else if (type == long.class || type == Long.class) { setLong(offset, value == null ? 0 : ((Long)value).longValue()); } else if (type == float.class || type == Float.class) { setFloat(offset, value == null ? 0f : ((Float)value).floatValue());
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.setLong</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#setLong */ public void setLong(long offset, long value) { boundsCheck(offset, 8); super.setLong(offset, value); }
/** * Sets the value. * * @param value the new value */ public void setValue(LONGLONG value) { getPointer().setLong(0, value.longValue()); }
/** * Sets the value. * * @param value the new value */ public void setValue(ULONGLONG value) { getPointer().setLong(0, value.longValue()); }
private static class MemberOrder { public int first; public int middle; public int last; }
protected void setLong(long value) { if (Handle.SIZE == 4) { getPointer().setInt(0, (int)value); } else { getPointer().setLong(0, value); } } }
protected void setLong(long value) { if (Handle.SIZE == 4) { getPointer().setInt(0, (int)value); } else { getPointer().setLong(0, value); } } }
public void setValue(NativeSize value) { if (NativeSize.SIZE == 4) getPointer().setInt(0, value.intValue()); else if (NativeSize.SIZE == 8) getPointer().setLong(0, value.longValue()); else throw new RuntimeException("GCCLong has to be either 4 or 8 bytes."); }
public void setValue(NativeSize value) { if (NativeSize.SIZE == 4) getPointer().setInt(0, value.intValue()); else if (NativeSize.SIZE == 8) getPointer().setLong(0, value.longValue()); else throw new RuntimeException("GCCLong has to be either 4 or 8 bytes."); }
public void setValue(NativeSize value) { if (NativeSize.SIZE == 4) getPointer().setInt(0, value.intValue()); else if (NativeSize.SIZE == 8) getPointer().setLong(0, value.longValue()); else throw new RuntimeException("GCCLong has to be either 4 or 8 bytes."); }
public void setValue(SizeT value) { Pointer p = getPointer(); if (Native.SIZE_T_SIZE == 8) { p.setLong(0, value.longValue()); } else { p.setInt(0, value.intValue()); } }
public void setValue(SizeT value) { Pointer p = getPointer(); if (Native.SIZE_T_SIZE == 8) { p.setLong(0, value.longValue()); } else { p.setInt(0, value.intValue()); } }
public void setValue(ULONG_PTR value) { if (Pointer.SIZE == 4) { getPointer().setInt(0, value.intValue()); } else { getPointer().setLong(0, value.longValue()); } } public ULONG_PTR getValue() {
public void setValue(ULONG_PTR value) { if (Native.POINTER_SIZE == 4) { getPointer().setInt(0, value.intValue()); } else { getPointer().setLong(0, value.longValue()); } } public ULONG_PTR getValue() {
public void setValue(ULONG_PTR value) { if (Pointer.SIZE == 4) { getPointer().setInt(0, value.intValue()); } else { getPointer().setLong(0, value.longValue()); } }
public void setValue(Dword value) { if (Dword.SIZE == 4) getPointer().setInt(0, value.intValue()); else getPointer().setLong(0, value.longValue()); } public Dword getValue() {