9 writes to _inputBufferIndex
System.Security.Cryptography (9)
System\Security\Cryptography\CryptoStream.cs (9)
283_inputBuffer![_inputBufferIndex++] = value; 370_inputBufferIndex = bytesRead - numWholeReadBlocksInBytes; 412_inputBufferIndex = totalInput; 435_inputBufferIndex += bytesRead; 452_inputBufferIndex = 0; 550_inputBufferIndex = _inputBlockSize; 558_inputBufferIndex += buffer.Length; 578_inputBufferIndex = 0; 643_inputBufferIndex += bytesToWrite;
30 references to _inputBufferIndex
System.Security.Cryptography (30)
System\Security\Cryptography\CryptoStream.cs (30)
146byte[] finalBytes = _transform.TransformFinalBlock(_inputBuffer!, 0, _inputBufferIndex); 281if (_inputBufferIndex + 1 < _inputBlockSize) 331Debug.Assert(_inputBufferIndex == 0); 351await _stream.ReadAsync(new Memory<byte>(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 352_stream.Read(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex); 356int totalInput = _inputBufferIndex + bytesRead; 361Buffer.BlockCopy(_inputBuffer, 0, tempInputBuffer, 0, _inputBufferIndex); 362CryptographicOperations.ZeroMemory(new Span<byte>(_inputBuffer, 0, _inputBufferIndex)); 363bytesRead += _inputBufferIndex; 371if (_inputBufferIndex != 0) 373Buffer.BlockCopy(tempInputBuffer, numWholeReadBlocksInBytes, _inputBuffer, 0, _inputBufferIndex); 411Buffer.BlockCopy(tempInputBuffer, _inputBufferIndex, _inputBuffer, _inputBufferIndex, bytesRead); 425while (_inputBufferIndex < _inputBlockSize) 428await _stream.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 429_stream.Read(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex); 442_outputBuffer = _transform.TransformFinalBlock(_inputBuffer, 0, _inputBufferIndex); 448_outputBufferIndex = _transform.TransformBlock(_inputBuffer, 0, _inputBufferIndex, _outputBuffer, 0); 541if (_inputBufferIndex > 0) 544if (buffer.Length >= _inputBlockSize - _inputBufferIndex) 547buffer.Slice(0, _inputBlockSize - _inputBufferIndex).CopyTo(_inputBuffer.AsMemory(_inputBufferIndex)); 548currentInputIndex += (_inputBlockSize - _inputBufferIndex); 549bytesToWrite -= (_inputBlockSize - _inputBufferIndex); 557buffer.CopyTo(_inputBuffer.AsMemory(_inputBufferIndex)); 567if (_inputBufferIndex == _inputBlockSize)