public ByteBuffer putLong (long value) { int newPosition = position + 8; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putShort (int index, short value) { // if (index < 0 || (long)index + 2 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putInt (int value) { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putLong (int index, long value) { // if (index < 0 || (long)index + 8 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putInt (int index, int value) { // if (index < 0 || (long)index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putInt (int value) { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putLong (int index, long value) { // if (index < 0 || (long)index + 8 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putShort (short value) { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putInt (int index, int value) { // if (index < 0 || (long)index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putShort (short value) { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putLong (long value) { int newPosition = position + 8; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putShort (int index, short value) { // if (index < 0 || (long)index + 2 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putShort (int index, short value) { // if (index < 0 || (long)index + 2 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putShort (short value) { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putInt (int index, int value) { // if (index < 0 || (long)index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putLong (long value) { int newPosition = position + 8; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putInt (int value) { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putInt (int index, int value) { // if (index < 0 || (long)index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } store(index, value); return this; }
public ByteBuffer putInt (int value) { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }
public ByteBuffer putShort (short value) { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferOverflowException(); // } store(position, value); position = newPosition; return this; }