text: public virtual int Alloc(int size){int index = n;int len = array.Length;if (n + size >= len){char[] aux = new char[len + blockSize];System.Array.Copy(array, 0, aux, 0, len);array = aux;}n += size;return index;}