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