6 writes to _writePos
System.Core (6)
System\IO\BufferedStream2.cs (6)
120
int newPos = Interlocked.Add(ref
_writePos
, count);
142
_writePos
= 0;
503
_writePos
= 0;
537
_writePos
= 0;
569
_writePos
= 0;
624
_writePos
= 0;
10 references to _writePos
System.Core (10)
System\IO\BufferedStream2.cs (10)
78
Debug.Assert((_readPos==0 && _readLen==0 &&
_writePos
>= 0) || (
_writePos
==0 && _readPos <= _readLen), "We're either reading or writing, but not both.");
80
if (
_writePos
==0) {
100
if (
_writePos
> bufferSize) {
111
if ((
_writePos
== 0) && (count >= bufferSize)) {
136
if (
_writePos
> bufferSize) {
497
if (
_writePos
> 0)
535
if (
_writePos
> 0)
536
WriteCore(_buffer, 0,
_writePos
, blockForWrite);
544
if (
_writePos
> 0) {