3 writes to _origin
mscorlib (3)
system\io\memorystream.cs (3)
81
_origin
= 0; // Must be 0 for byte[]'s created by MemoryStream
96
_origin
= 0;
120
_origin
= _position = index;
22 references to _origin
mscorlib (22)
system\io\memorystream.cs (22)
226
buffer = new ArraySegment<byte>(_buffer, offset:
_origin
, count:(_length -
_origin
));
242
origin =
_origin
;
286
return _capacity -
_origin
;
292
Contract.Ensures(_capacity -
_origin
== value);
316
return _length -
_origin
;
323
return _position -
_origin
;
335
_position =
_origin
+ (int)value;
489
int tempPosition = unchecked(
_origin
+ (int)offset);
490
if (offset < 0 || tempPosition <
_origin
)
497
if (unchecked(_position + offset) <
_origin
|| tempPosition <
_origin
)
504
if ( unchecked(_length + offset) <
_origin
|| tempPosition <
_origin
)
531
Contract.Ensures(_length -
_origin
== value);
537
if (value > (Int32.MaxValue -
_origin
)) {
541
int newLength =
_origin
+ (int)value;
552
byte[] copy = new byte[_length -
_origin
];
553
Buffer.InternalBlockCopy(_buffer,
_origin
, copy, 0, _length -
_origin
);
661
stream.Write(_buffer,
_origin
, _length -
_origin
);