9 writes to m_ChunkChars
mscorlib (9)
system\text\stringbuilder.cs (9)
146
m_ChunkChars
= new char[capacity];
175
m_ChunkChars
= new char[capacity];
235
m_ChunkChars
= new char[persistedCapacity];
304
m_ChunkChars
= newArray;
503
m_ChunkChars
= newArray;
1987
m_ChunkChars
= null;
1990
m_ChunkChars
= new char[newBlockLength];
2004
m_ChunkChars
= from.m_ChunkChars;
2096
m_ChunkChars
= new char[size];
43 references to m_ChunkChars
mscorlib (43)
system\text\stringbuilder.cs (43)
151
ThreadSafeCopy(sourcePtr + startIndex,
m_ChunkChars
, 0, length);
236
persistedString.CopyTo(0,
m_ChunkChars
, 0, persistedString.Length);
261
BCLDebug.Correctness((uint)(m_ChunkOffset +
m_ChunkChars
.Length) >= m_ChunkOffset, "Integer Overflow");
268
Contract.Assert(currentBlock.
m_ChunkChars
!= null, "Empty Buffer");
270
Contract.Assert(currentBlock.m_ChunkLength <= currentBlock.
m_ChunkChars
.Length, "Out of range length");
287
get { return
m_ChunkChars
.Length + m_ChunkOffset; }
303
Array.Copy(
m_ChunkChars
, newArray, m_ChunkLength);
348
char[] sourceArray = chunk.
m_ChunkChars
;
425
char[] sourceArray = chunk.
m_ChunkChars
;
500
Contract.Assert(newLen > chunk.
m_ChunkChars
.Length, "the new chunk should be larger than the one it is replacing");
501
Array.Copy(chunk.
m_ChunkChars
, newArray, chunk.m_ChunkLength);
527
return chunk.
m_ChunkChars
[indexInBlock];
543
chunk.
m_ChunkChars
[indexInBlock] = value;
567
if (idx <
m_ChunkChars
.Length)
569
m_ChunkChars
[idx++] = value;
640
char[] chunkChars =
m_ChunkChars
;
808
ThreadSafeCopy(chunk.
m_ChunkChars
, chunkStartIndex, destination, curDestIndex, chunkCount);
929
if (m_ChunkLength <
m_ChunkChars
.Length)
930
m_ChunkChars
[m_ChunkLength++] = value;
1530
if (thisChunk.
m_ChunkChars
[thisChunkIndex] != sbChunk.
m_ChunkChars
[sbChunkIndex])
1647
if (chunk.
m_ChunkChars
[curInChunk] == oldChar)
1648
chunk.
m_ChunkChars
[curInChunk] = newChar;
1674
if (newIndex <=
m_ChunkChars
.Length)
1676
ThreadSafeCopy(value,
m_ChunkChars
, m_ChunkLength, valueCount);
1682
int firstLength =
m_ChunkChars
.Length - m_ChunkLength;
1685
ThreadSafeCopy(value,
m_ChunkChars
, m_ChunkLength, firstLength);
1686
m_ChunkLength =
m_ChunkChars
.Length;
1695
ThreadSafeCopy(value + firstLength,
m_ChunkChars
, 0, restLength);
1758
Contract.Assert(gapStart < sourceChunk.
m_ChunkChars
.Length, "gap starts at end of buffer. Should not happen");
1764
fixed (char* sourcePtr = &sourceChunk.
m_ChunkChars
[gapStart])
1800
if (value[i] != chunk.
m_ChunkChars
[indexInChunk])
1826
ThreadSafeCopy(value, chunk.
m_ChunkChars
, indexInChunk, lengthToCopy);
1896
fixed(char* charPtr = ¤tSrc.
m_ChunkChars
[0]) {
2004
m_ChunkChars = from.
m_ChunkChars
;
2044
if (!doneMoveFollowingChars && chunk.m_ChunkLength <= DefaultCapacity * 2 && chunk.
m_ChunkChars
.Length - chunk.m_ChunkLength >= count)
2049
chunk.
m_ChunkChars
[i + count] = chunk.
m_ChunkChars
[i];
2064
fixed (char* chunkCharsPtr = chunk.
m_ChunkChars
) {
2065
ThreadSafeCopy(chunkCharsPtr, newChunk.
m_ChunkChars
, 0, copyCount1);
2071
ThreadSafeCopy(chunkCharsPtr + copyCount1, chunk.
m_ChunkChars
, 0, copyCount2);
2169
ThreadSafeCopy(endChunk.
m_ChunkChars
, endIndexInChunk, endChunk.
m_ChunkChars
, copyTargetIndexInChunk, copyCount);