4 writes to _outputBufferIndex
System.Security.Cryptography (4)
System\Security\Cryptography\CryptoStream.cs (4)
268
_outputBufferIndex
-= 1;
320
_outputBufferIndex
-= bytesToCopy;
443
_outputBufferIndex
= _outputBuffer.Length;
448
_outputBufferIndex
= _transform.TransformBlock(_inputBuffer, 0, _inputBufferIndex, _outputBuffer, 0);
8 references to _outputBufferIndex
System.Security.Cryptography (8)
System\Security\Cryptography\CryptoStream.cs (8)
144
Debug.Assert(
_outputBufferIndex
== 0, "The output index can only ever be non-zero when in read mode.");
263
if (
_outputBufferIndex
> 1)
267
Buffer.BlockCopy(_outputBuffer, 1, _outputBuffer, 0,
_outputBufferIndex
- 1);
313
if (
_outputBufferIndex
!= 0)
315
int bytesToCopy = Math.Min(
_outputBufferIndex
, buffer.Length);
322
CryptographicOperations.ZeroMemory(_outputBuffer.AsSpan(
_outputBufferIndex
, bytesToCopy));
328
Debug.Assert(
_outputBufferIndex
== 0);
563
Debug.Assert(
_outputBufferIndex
== 0, "The output index can only ever be non-zero when in read mode.");