5 writes to _currentStreamPosition
WindowsBase (5)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (5)
142
_currentStreamPosition
= _currentStreamLength;
179
_currentStreamPosition
= newStreamPosition;
255
_currentStreamPosition
+= bytesRead;
286
_currentStreamPosition
+= count;
572
_currentStreamPosition
+= count; // Update the stream position since the write request is satisfied by this point
24 references to _currentStreamPosition
WindowsBase (24)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (24)
73
return
_currentStreamPosition
;
141
if (
_currentStreamPosition
> _currentStreamLength)
156
long newStreamPosition =
_currentStreamPosition
;
181
return
_currentStreamPosition
;
190
Debug.Assert(
_currentStreamPosition
>= 0);
197
if (_currentStreamLength <=
_currentStreamPosition
)
204
int bytesToRead = (int) Math.Min((long)count, _currentStreamLength -
_currentStreamPosition
);
215
_isolatedStorageStream.Seek(
_currentStreamPosition
, SeekOrigin.Begin);
226
int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(
_currentStreamPosition
));
238
_currentStreamPosition
, bytesToRead,
245
buffer, (int)(offset + overlapBlockOffset -
_currentStreamPosition
),
270
Debug.Assert(
_currentStreamPosition
>= 0);
283
_isolatedStorageStream.Seek(
_currentStreamPosition
, SeekOrigin.Begin);
292
_currentStreamLength = Math.Max(_currentStreamLength,
_currentStreamPosition
);
520
int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(
_currentStreamPosition
));
535
if (CanCollapseWithPreviousBlock(prevMemStreamBlock,
_currentStreamPosition
, (long) count))
539
SkipWrite(prevMemStreamBlock.Stream, prevMemStreamBlock.EndOffset,
_currentStreamPosition
);
551
prevMemStreamBlock.Stream.Seek(
_currentStreamPosition
- prevMemStreamBlock.Offset, SeekOrigin.Begin);
559
prevMemStreamBlock.Stream.SetLength(
_currentStreamPosition
- prevMemStreamBlock.Offset);
566
prevMemStreamBlock = ConstructMemoryStreamFromWriteRequest(buffer,
_currentStreamPosition
, count, offset);
578
if (_memoryStreamList[i].EndOffset >
_currentStreamPosition
)
594
blockOffset =
_currentStreamPosition
- memStreamBlock.Offset;
610
SkipWrite(prevMemStreamBlock.Stream,
_currentStreamPosition
, memStreamBlock.Offset);
628
_currentStreamPosition
,