示例#1
0
 /// <summary>
 /// Creates an instance of
 /// <see cref="CharArrayBuffer">CharArrayBuffer</see>
 /// with the given initial
 /// capacity.
 /// </summary>
 /// <param name="capacity">the capacity</param>
 public CharArrayBuffer(int capacity) : base()
 {
     Args.NotNegative(capacity, "Buffer capacity");
     this.buffer = new char[capacity];
 }