13 writes to _position
mscorlib (13)
system\io\memorystream.cs (13)
120
_origin =
_position
= index;
257
int pos = (
_position
+= 4); // use temp to avoid ----
260
_position
= _length;
275
_position
+= n;
335
_position
= _origin + (int)value;
367
_position
+= n;
416
return _buffer[
_position
++];
492
_position
= tempPosition;
499
_position
= tempPosition;
506
_position
= tempPosition;
546
if (_position > newLength)
_position
= newLength;
595
_position
= i;
650
_buffer[
_position
++] = value;
24 references to _position
mscorlib (24)
system\io\memorystream.cs (24)
249
return
_position
;
270
int n = _length -
_position
;
274
Contract.Assert(
_position
+ n >= 0, "_position + n >= 0"); // len is less than 2^31 -1.
323
return
_position
- _origin;
352
int n = _length -
_position
;
357
Contract.Assert(
_position
+ n >= 0, "_position + n >= 0"); // len is less than 2^31 -1.
363
buffer[offset + byteCount] = _buffer[
_position
+ byteCount];
366
Buffer.InternalBlockCopy(_buffer,
_position
, buffer, offset, n);
414
if (
_position
>= _length) return -1;
461
Int32 pos =
_position
;
462
Int32 n = InternalEmulateRead(_length -
_position
);
496
int tempPosition = unchecked(
_position
+ (int)offset);
497
if (unchecked(
_position
+ offset) < _origin || tempPosition < _origin)
513
Contract.Assert(
_position
>= 0, "_position >= 0");
514
return
_position
;
546
if (
_position
> newLength) _position = newLength;
571
int i =
_position
+ count;
577
bool mustZero =
_position
> _length;
591
_buffer[
_position
+ byteCount] = buffer[offset + byteCount];
594
Buffer.InternalBlockCopy(buffer, offset, _buffer,
_position
, count);
638
if (
_position
>= _length) {
639
int newLength =
_position
+ 1;
640
bool mustZero =
_position
> _length;
647
Array.Clear(_buffer, _length,
_position
- _length);