5 writes to _length
mscorlib (5)
system\io\memorystream.cs (5)
93
_length
= _capacity = buffer.Length;
121
_length
= _capacity = index + count;
545
_length
= newLength;
585
_length
= i;
648
_length
= newLength;
28 references to _length
mscorlib (28)
system\io\memorystream.cs (28)
226
buffer = new ArraySegment<byte>(_buffer, offset:_origin, count:(
_length
- _origin));
243
length =
_length
;
258
if (pos >
_length
)
260
_position =
_length
;
270
int n =
_length
- _position;
302
if (
_length
> 0) Buffer.InternalBlockCopy(_buffer, 0, newBuffer, 0,
_length
);
316
return
_length
- _origin;
352
int n =
_length
- _position;
414
if (_position >=
_length
) return -1;
462
Int32 n = InternalEmulateRead(
_length
- _position);
503
int tempPosition = unchecked(
_length
+ (int)offset);
504
if ( unchecked(
_length
+ offset) < _origin || tempPosition < _origin )
531
Contract.Ensures(
_length
- _origin == value);
543
if (!allocatedNewArray && newLength >
_length
)
544
Array.Clear(_buffer,
_length
, newLength -
_length
);
552
byte[] copy = new byte[
_length
- _origin];
553
Buffer.InternalBlockCopy(_buffer, _origin, copy, 0,
_length
- _origin);
576
if (i >
_length
) {
577
bool mustZero = _position >
_length
;
584
Array.Clear(_buffer,
_length
, i -
_length
);
638
if (_position >=
_length
) {
640
bool mustZero = _position >
_length
;
647
Array.Clear(_buffer,
_length
, _position -
_length
);
661
stream.Write(_buffer, _origin,
_length
- _origin);