/** * Copies the integer value to native memory * * @param runtime the current runtime. * @param buffer the native memory buffer. * @param offset the memory offset. */ public void toNative(Runtime runtime, Pointer buffer, long offset) { buffer.putInt(offset, value); }
/** * Copies the integer value to native memory * * @param runtime * @param buffer the native memory buffer */ public void toNative(Runtime runtime, Pointer buffer, long offset) { buffer.putInt(offset, value); }
@Override public void put(Pointer memory, Number value) { memory.putInt(0, value.intValue()); } }
@Override public void put(Pointer memory, Number value) { memory.putInt(0, value.intValue()); } }
@Override public void putInt(long offset, int value) { checkBounds(size, offset, 4); io.putInt(base + offset, value); }
/** * Sets the value for this field. * * @param value the 32 bit unsigned value to set. */ public final void set(jnr.ffi.Pointer ptr, long value) { ptr.putInt(offset(), (int) value); }
@Override public void putInt(long offset, int value) { checkBounds(size, offset, 4); io.putInt(base + offset, value); }
/** * Sets the value for this field. * * @param ptr The pointer to the field. * @param value the 32 bit unsigned value to set. */ public final void set(jnr.ffi.Pointer ptr, long value) { ptr.putInt(offset(), (int) value); }
/** * Sets the value for this field. * * @param ptr The pointer to the field. * @param value the 32 bit unsigned value to set. */ public final void set(jnr.ffi.Pointer ptr, long value) { ptr.putInt(offset(), (int) value); }
@Override public void putInt(long offset, int value) { checkBounds(size, offset, 4); io.putInt(base + offset, value); }
/** * Sets the value for this field. * * @param ptr The pointer to the field. * @param value the 32 bit value to set. */ public final void set(jnr.ffi.Pointer ptr, int value) { ptr.putInt(offset(), value); }
/** * Sets the value for this field. * * @param value the 32 bit value to set. */ public final void set(int value) { getMemory().putInt(offset(), value); }
/** * Sets the value for this field. * * @param value the 32 bit unsigned value to set. */ public final void set(long value) { getMemory().putInt(offset(), (int) value); }
/** * Sets the value for this field. * * @param value the 32 bit unsigned value to set. */ public final void set(long value) { getMemory().putInt(offset(), (int) value); }
/** * Sets the value for this field. * * @param value the 32 bit value to set. */ public final void set(int value) { getMemory().putInt(offset(), value); }
/** * Sets the value for this field. * * @param value the 32 bit unsigned value to set. */ public final void set(long value) { getMemory().putInt(offset(), (int) value); }
public void set(java.lang.Number value) { if (Platform.IS_MAC) { getMemory().putInt(offset(), value.intValue()); } else { getMemory().putLongLong(offset(), value.longValue()); } }
public void set(java.lang.Number value) { if (Platform.IS_MAC) { getMemory().putInt(offset(), value.intValue()); } else { getMemory().putLongLong(offset(), value.longValue()); } }
public void set(java.lang.Number value) { if (Platform.IS_MAC) { getMemory().putInt(offset(), value.intValue()); } else { getMemory().putLongLong(offset(), value.longValue()); } }
public final void put(Pointer buf, int index, int fd, int filt, int flags) { buf.putInt(uintptr_t, (index * layout.size()) + layout.ident.offset(), fd); buf.putShort((index * layout.size()) + layout.filter.offset(), (short) filt); buf.putInt((index * layout.size()) + layout.flags.offset(), flags); }