code: public StringBuffer toStringBuffer() {
          StringBuffer sb = new StringBuffer(length);
          sb.append(c, 0, length);
          return sb;
      }
docs: Converts the contents of the buffer into a StringBuffer.
  This method involves copying the new data once!
  @return