17 writes to m_ChunkLength
mscorlib (17)
system\text\stringbuilder.cs (17)
147
m_ChunkLength
= length;
237
m_ChunkLength
= persistedString.Length;
476
m_ChunkLength
= 0;
507
m_ChunkLength
= value - chunk.m_ChunkOffset;
574
m_ChunkLength
= idx;
580
m_ChunkLength
= idx;
661
m_ChunkLength
= newCurrentIndex;
930
m_ChunkChars[
m_ChunkLength
++] = value;
1677
m_ChunkLength
= newIndex;
1686
m_ChunkLength
= m_ChunkChars.Length;
1696
m_ChunkLength
= restLength;
1982
m_ChunkLength
= 0;
2002
m_ChunkLength
= from.m_ChunkLength;
2051
chunk.
m_ChunkLength
+= count;
2057
newChunk.
m_ChunkLength
= count;
2149
chunk.
m_ChunkLength
= indexInChunk;
2162
endChunk.
m_ChunkLength
-= (endIndexInChunk - copyTargetIndexInChunk);
44 references to m_ChunkLength
mscorlib (44)
system\text\stringbuilder.cs (44)
270
Contract.Assert(currentBlock.
m_ChunkLength
<= currentBlock.m_ChunkChars.Length, "Out of range length");
271
Contract.Assert(currentBlock.
m_ChunkLength
>= 0, "Negative length");
281
Contract.Assert(currentBlock.m_ChunkOffset == prevBlock.m_ChunkOffset + prevBlock.
m_ChunkLength
, "There is a gap between chunks!");
303
Array.Copy(m_ChunkChars, newArray,
m_ChunkLength
);
345
if (chunk.
m_ChunkLength
> 0)
350
int chunkLength = chunk.
m_ChunkLength
;
409
if (chunkEndIndex > chunk.
m_ChunkLength
)
410
chunkEndIndex = chunk.
m_ChunkLength
;
459
return m_ChunkOffset +
m_ChunkLength
;
501
Array.Copy(chunk.m_ChunkChars, newArray, chunk.
m_ChunkLength
);
525
if (indexInBlock >= chunk.
m_ChunkLength
)
541
if (indexInBlock >= chunk.
m_ChunkLength
)
564
int idx =
m_ChunkLength
;
576
Contract.Assert(
m_ChunkLength
== 0, "Expand should create a new block");
641
int chunkLength =
m_ChunkLength
;
793
if (chunkEndIndex > chunk.
m_ChunkLength
)
794
chunkEndIndex = chunk.
m_ChunkLength
;
929
if (
m_ChunkLength
< m_ChunkChars.Length)
1500
int thisChunkIndex = thisChunk.
m_ChunkLength
;
1502
int sbChunkIndex = sbChunk.
m_ChunkLength
;
1514
thisChunkIndex = thisChunk.
m_ChunkLength
+ thisChunkIndex;
1523
sbChunkIndex = sbChunk.
m_ChunkLength
+ sbChunkIndex;
1594
if (indexInChunk >= chunk.
m_ChunkLength
|| count == 0) // Have we moved out of the current chunk
1644
int endInChunk = Math.Min(chunk.
m_ChunkLength
, endIndexInChunk);
1673
int newIndex = valueCount +
m_ChunkLength
;
1676
ThreadSafeCopy(value, m_ChunkChars,
m_ChunkLength
, valueCount);
1682
int firstLength = m_ChunkChars.Length -
m_ChunkLength
;
1685
ThreadSafeCopy(value, m_ChunkChars,
m_ChunkLength
, firstLength);
1692
Contract.Assert(
m_ChunkLength
== 0, "Expand did not make a new block");
1760
Contract.Assert(gapEnd <= sourceChunk.
m_ChunkLength
, "gap too big");
1770
Contract.Assert(targetIndexInChunk <= targetChunk.
m_ChunkLength
, "gap not in chunk");
1791
if (indexInChunk >= chunk.
m_ChunkLength
)
1822
int lengthInChunk = chunk.
m_ChunkLength
- indexInChunk;
1830
if (indexInChunk >= chunk.
m_ChunkLength
)
1895
int chunkLengthInBytes = currentSrc.
m_ChunkLength
*sizeof(char);
1954
return FindChunkForIndex(chunk.m_ChunkOffset + chunk.
m_ChunkLength
);
1981
m_ChunkOffset +=
m_ChunkLength
;
2002
m_ChunkLength = from.
m_ChunkLength
;
2044
if (!doneMoveFollowingChars && chunk.
m_ChunkLength
<= DefaultCapacity * 2 && chunk.m_ChunkChars.Length - chunk.
m_ChunkLength
>= count)
2046
for (int i = chunk.
m_ChunkLength
; i > indexInChunk; )
2100
m_ChunkOffset = previousBlock.m_ChunkOffset + previousBlock.
m_ChunkLength
;
2144
int copyCount = endChunk.
m_ChunkLength
- endIndexInChunk;
2153
endChunk.m_ChunkOffset = chunk.m_ChunkOffset + chunk.
m_ChunkLength
;