13 writes to _position
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (13)
92
_origin =
_position
= index;
224
_position
= _length;
229
_position
= newPos;
245
_position
+= n;
316
_position
= _origin + (int)value;
341
_position
+= n;
364
_position
+= n;
434
return _buffer[
_position
++];
532
_position
= tempPosition;
566
_position
= newLength;
619
_position
= i;
660
_position
= i;
740
_buffer[
_position
++] = value;
30 references to _position
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (30)
210
return
_position
;
219
int origPos =
_position
;
238
int n = _length -
_position
;
244
Debug.Assert(
_position
+ n >= 0); // len is less than 2^31 -1.
307
return
_position
- _origin;
325
int n = _length -
_position
;
331
Debug.Assert(
_position
+ n >= 0); // len is less than 2^31 -1.
337
buffer[offset + byteCount] = _buffer[
_position
+ byteCount];
340
Buffer.BlockCopy(_buffer,
_position
, buffer, offset, n);
358
int n = Math.Min(_length -
_position
, buffer.Length);
362
new Span<byte>(_buffer,
_position
, n).CopyTo(buffer);
431
if (
_position
>= _length)
453
int originalPosition =
_position
;
489
int pos =
_position
;
490
int n = InternalEmulateRead(_length -
_position
);
519
SeekOrigin.Current =>
_position
,
534
Debug.Assert(
_position
>= _origin);
535
return
_position
- _origin;
565
if (
_position
> newLength)
585
int i =
_position
+ count;
592
bool mustZero =
_position
> _length;
612
_buffer[
_position
+ byteCount] = buffer[offset + byteCount];
617
Buffer.BlockCopy(buffer, offset, _buffer,
_position
, count);
637
int i =
_position
+ buffer.Length;
643
bool mustZero =
_position
> _length;
659
buffer.CopyTo(new Span<byte>(_buffer,
_position
, buffer.Length));
722
if (
_position
>= _length)
724
int newLength =
_position
+ 1;
725
bool mustZero =
_position
> _length;
736
Array.Clear(_buffer, _length,
_position
- _length);