text: public override void write(string str, int offset, int count){if (str == null){throw new System.ArgumentNullException("str == null");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}lock (@lock){expand(count);Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, this.count);this.count += count;}}