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)
144Debug.Assert(_outputBufferIndex == 0, "The output index can only ever be non-zero when in read mode."); 263if (_outputBufferIndex > 1) 267Buffer.BlockCopy(_outputBuffer, 1, _outputBuffer, 0, _outputBufferIndex - 1); 313if (_outputBufferIndex != 0) 315int bytesToCopy = Math.Min(_outputBufferIndex, buffer.Length); 322CryptographicOperations.ZeroMemory(_outputBuffer.AsSpan(_outputBufferIndex, bytesToCopy)); 328Debug.Assert(_outputBufferIndex == 0); 563Debug.Assert(_outputBufferIndex == 0, "The output index can only ever be non-zero when in read mode.");