9 writes to m_ChunkOffset
mscorlib (9)
system\text\stringbuilder.cs (9)
477
m_ChunkOffset
= 0;
505
m_ChunkOffset
= chunk.m_ChunkOffset;
1981
m_ChunkOffset
+= m_ChunkLength;
2003
m_ChunkOffset
= from.m_ChunkOffset;
2036
chunk.
m_ChunkOffset
+= count;
2079
chunk.
m_ChunkOffset
+= count;
2100
m_ChunkOffset
= previousBlock.m_ChunkOffset + previousBlock.m_ChunkLength;
2137
chunk.
m_ChunkOffset
-= count;
2153
endChunk.
m_ChunkOffset
= chunk.m_ChunkOffset + chunk.m_ChunkLength;
38 references to m_ChunkOffset
mscorlib (38)
system\text\stringbuilder.cs (38)
261
BCLDebug.Correctness((uint)(
m_ChunkOffset
+ m_ChunkChars.Length) >=
m_ChunkOffset
, "Integer Overflow");
272
Contract.Assert(currentBlock.
m_ChunkOffset
>= 0, "Negative offset");
277
Contract.Assert(currentBlock.
m_ChunkOffset
== 0, "First chunk's offset is not 0");
281
Contract.Assert(currentBlock.
m_ChunkOffset
== prevBlock.
m_ChunkOffset
+ prevBlock.m_ChunkLength, "There is a gap between chunks!");
287
get { return m_ChunkChars.Length +
m_ChunkOffset
; }
301
int newLen = value -
m_ChunkOffset
;
349
int chunkOffset = chunk.
m_ChunkOffset
;
406
int chunkEndIndex = sourceEndIndex - chunk.
m_ChunkOffset
;
459
return
m_ChunkOffset
+ m_ChunkLength;
497
int newLen = originalCapacity - chunk.
m_ChunkOffset
;
505
m_ChunkOffset = chunk.
m_ChunkOffset
;
507
m_ChunkLength = value - chunk.
m_ChunkOffset
;
522
int indexInBlock = index - chunk.
m_ChunkOffset
;
538
int indexInBlock = index - chunk.
m_ChunkOffset
;
790
int chunkEndIndex = sourceEndIndex - chunk.
m_ChunkOffset
;
1567
int indexInChunk = startIndex - chunk.
m_ChunkOffset
;
1597
int index = indexInChunk + chunk.
m_ChunkOffset
;
1607
indexInChunk = index - chunk.
m_ChunkOffset
;
1639
int endIndexInChunk = endIndex - chunk.
m_ChunkOffset
;
1640
int startIndexInChunk = startIndex - chunk.
m_ChunkOffset
;
1745
MakeRoom(targetChunk.
m_ChunkOffset
+ targetIndexInChunk, delta, out targetChunk, out targetIndexInChunk, true);
1776
Remove(targetChunk.
m_ChunkOffset
+ targetIndexInChunk, -delta, out targetChunk, out targetIndexInChunk);
1894
int chunkOffsetInBytes = currentSrc.
m_ChunkOffset
*sizeof(char);
1920
while (ret.
m_ChunkOffset
> index)
1937
while (ret.
m_ChunkOffset
*sizeof(char) > byteIndex)
1954
return FindChunkForIndex(chunk.
m_ChunkOffset
+ chunk.m_ChunkLength);
1985
if (
m_ChunkOffset
+ newBlockLength < newBlockLength)
2003
m_ChunkOffset = from.
m_ChunkOffset
;
2034
while (chunk.
m_ChunkOffset
> index)
2039
indexInChunk = index - chunk.
m_ChunkOffset
;
2100
m_ChunkOffset = previousBlock.
m_ChunkOffset
+ previousBlock.m_ChunkLength;
2122
if (endIndex - chunk.
m_ChunkOffset
>= 0)
2127
endIndexInChunk = endIndex - endChunk.
m_ChunkOffset
;
2129
if (startIndex - chunk.
m_ChunkOffset
>= 0)
2131
indexInChunk = startIndex - chunk.
m_ChunkOffset
;
2153
endChunk.m_ChunkOffset = chunk.
m_ChunkOffset
+ chunk.m_ChunkLength;