/** * 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)); }
default void writeUnsignedInt(T handle, long offset, long i) { writeInt(handle, offset, (int) Maths.toUInt32(i)); }
default void writeUnsignedInt(T handle, long offset, long i) { writeInt(handle, offset, (int) Maths.toUInt32(i)); }
@org.jetbrains.annotations.NotNull @NotNull default S writeUnsignedInt(long i) throws BufferOverflowException, IllegalArgumentException { return writeInt((int) Maths.toUInt32(i)); }