code: public ByteBuffer putLong (long value) {
        int newPosition = position + 8;
  //if (newPosition > limit) {
  //throw new BufferOverflowException();
  //}
        putLong(position, value);
        position = newPosition;
        return this;
      }
docs: Writes the given long to the current position and increases the position by 8.
  <p>
  The long is converted to bytes using the current byte order.
  </p>
  
  @param value the long to write.
  @return this buffer.
  @exception BufferOverflowException if position is greater than {@code limit - 8}.
  @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer.