nsAutoIndexBuffer::GrowTo(PRInt32 aAtLeast)
nsAutoTextBuffer::GrowTo(PRInt32 aNewSize)
nsAutoIndexBuffer::GrowTo(PRInt32 aAtLeast){  PRInt32 newSize = mBufferLen * 2;  if (newSize < mBufferLen + aAtLeast) {    newSize = mBufferLen * 2 + aAtLeast;  }  PRInt32* newBuffer = new PRInt32[newSize];  if (!newBuffer) {    return NS_ERROR_OUT_OF_MEMORY;  }  nsCRT::memcpy(newBuffer, mBuffer, sizeof(PRInt32) * mBufferLen);  if (mBuffer != mAutoBuffer) {    delete [] mBuffer;  }  mBuffer = newBuffer;  mBufferLen = newSize;  return NS_OK;}