@Override public void writeTo(RandomDataOutput target, long targetOffset) { target.writeInt(targetOffset, instance); }
@Override default void writeInt(R handle, long offset, int i) { handle.writeInt(offset, i); }
@Override public void writeTo(RandomDataOutput target, long targetOffset) { target.writeInt(targetOffset, instance); }
@Override default void writeInt(R handle, long offset, int i) { handle.writeInt(offset, i); }
/** * Write an unsigned byte at an offset. * * @param offset to write to * @param i the value * @return this * @throws BufferOverflowException if the capacity was exceeded * @throws IllegalArgumentException if the value cannot be cast to the type without loss. */ @NotNull default R writeUnsignedInt(long offset, long i) throws BufferOverflowException, IllegalArgumentException { return writeInt(offset, (int) Maths.toUInt32(i)); }