text: public virtual java.nio.CharBuffer put(string str, int start, int end){if (start < 0 || end < start || end > str.Length){throw new System.IndexOutOfRangeException("str.length()=" + str.Length + ", start="+ start + ", end=" + end);}if (end - start > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = start; i < end; i++){put(str[i]);}}return this;}