@Override public ByteBuffer putChar(char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.CHAR; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, (short) value, order); position = newPosition; return this; }
@Override public ByteBuffer putShort(int index, short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.SHORT); this.block.pokeShort(offset + index, value, order); return this; } }
@Override public ByteBuffer putShort(short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.SHORT; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putChar(int index, char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.CHAR); this.block.pokeShort(offset + index, (short) value, order); return this; }
@Override public ByteBuffer putChar(char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.CHAR; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, (short) value, order); position = newPosition; return this; }
@Override public ByteBuffer putChar(char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.CHAR; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, (short) value, order); position = newPosition; return this; }
@Override public ByteBuffer putShort(int index, short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.SHORT); this.block.pokeShort(offset + index, value, order); return this; } }
@Override public ByteBuffer putShort(short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.SHORT; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putChar(int index, char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.CHAR); this.block.pokeShort(offset + index, (short) value, order); return this; }
@Override public ByteBuffer putChar(char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.CHAR; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, (short) value, order); position = newPosition; return this; }
@Override public ByteBuffer putShort(short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.SHORT; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putChar(int index, char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.CHAR); this.block.pokeShort(offset + index, (short) value, order); return this; }
@Override public ByteBuffer putShort(int index, short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.SHORT); this.block.pokeShort(offset + index, value, order); return this; } }
@Override public ByteBuffer putShort(short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.SHORT; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putShort(int index, short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.SHORT); this.block.pokeShort(offset + index, value, order); return this; } }
@Override public ByteBuffer putChar(int index, char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.CHAR); this.block.pokeShort(offset + index, (short) value, order); return this; }
@Override public ByteBuffer putChar(int index, char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.CHAR); this.block.pokeShort(offset + index, (short) value, order); return this; }
@Override public ByteBuffer putShort(int index, short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.SHORT); this.block.pokeShort(offset + index, value, order); return this; } }
@Override public ByteBuffer putChar(char value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.CHAR; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, (short) value, order); position = newPosition; return this; }
@Override public ByteBuffer putShort(short value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.SHORT; if (newPosition > limit) { throw new BufferOverflowException(); } this.block.pokeShort(offset + position, value, order); position = newPosition; return this; }