@Override public final long longValue(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); } }
/** * Copies the long value from native memory * * @param runtime the current runtime. * @param memory the native memory buffer. * @param offset the memory offset. */ public void fromNative(Runtime runtime, Pointer memory, long offset) { this.value = NativeLong.valueOf(memory.getNativeLong(offset)); }
/** * Gets the value for this field. * * @return a long. */ public final long get(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); }
/** * Copies the long value from native memory * * @param runtime the current runtime. * @param memory the native memory buffer. * @param offset the memory offset. */ public void fromNative(Runtime runtime, Pointer memory, long offset) { this.value = NativeLong.valueOf(memory.getNativeLong(offset)); }
/** * Gets the value for this field. * * @param ptr The pointer to the field. * @return a long. */ public final long get(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); }
/** * Gets the value for this field. * * @param ptr The pointer to the field. * @return a long. */ public final long get(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); }
@Override public final long longValue(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); } }
@Override public final long longValue(jnr.ffi.Pointer ptr) { return ptr.getNativeLong(offset()); } }
/** * Copies the long value from native memory * * @param runtime * @param memory the native memory buffer. */ public void fromNative(Runtime runtime, Pointer memory, long offset) { this.value = NativeLong.valueOf(memory.getNativeLong(offset)); }
@Override public final long longValue() { return getMemory().getNativeLong(offset()); } }
/** * Gets the value for this field. * * @return a long. */ public final long get() { return getMemory().getNativeLong(offset()); }
/** * Gets the value for this field. * * @return a long. */ public final long get() { return getMemory().getNativeLong(offset()); }
@Override public final long longValue() { return getMemory().getNativeLong(offset()); } }
@Override public final long longValue() { return getMemory().getNativeLong(offset()); } }
/** * Gets the value for this field. * * @return a long. */ public final long get() { return getMemory().getNativeLong(offset()); }
/** * Gets the value for this field. * * @return a int. */ public final long get(jnr.ffi.Pointer ptr) { long value = ptr.getNativeLong(offset()); final long mask = getRuntime().findType(NativeType.SLONG).size() == 4 ? 0xffffffffL : 0xffffffffffffffffL; return value < 0 ? (long) ((value & mask) + mask + 1) : value; }
/** * Gets the value for this field. * * @param ptr The pointer to the field. * @return a int. */ public final long get(jnr.ffi.Pointer ptr) { long value = ptr.getNativeLong(offset()); final long mask = getRuntime().findType(NativeType.SLONG).size() == 4 ? 0xffffffffL : 0xffffffffffffffffL; return value < 0 ? (long) ((value & mask) + mask + 1) : value; }
/** * Gets the value for this field. * * @return a int. */ public final long get() { long value = getMemory().getNativeLong(offset()); final long mask = getRuntime().findType(NativeType.SLONG).size() == 32 ? 0xffffffffL : 0xffffffffffffffffL; return value < 0 ? (long) ((value & mask) + mask + 1) : value; }
/** * Gets the value for this field. * * @return a int. */ public final long get() { long value = getMemory().getNativeLong(offset()); final long mask = getRuntime().findType(NativeType.SLONG).size() == 32 ? 0xffffffffL : 0xffffffffffffffffL; return value < 0 ? (long) ((value & mask) + mask + 1) : value; }
/** * Gets the value for this field. * * @return a int. */ public final long get() { long value = getMemory().getNativeLong(offset()); final long mask = getRuntime().findType(NativeType.SLONG).size() == 32 ? 0xffffffffL : 0xffffffffffffffffL; return value < 0 ? (long) ((value & mask) + mask + 1) : value; }