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)
146
byte[] finalBytes = _transform.TransformFinalBlock(_inputBuffer!, 0,
_inputBufferIndex
);
281
if (
_inputBufferIndex
+ 1 < _inputBlockSize)
331
Debug.Assert(
_inputBufferIndex
== 0);
351
await _stream.ReadAsync(new Memory<byte>(tempInputBuffer,
_inputBufferIndex
, numWholeBlocksInBytes -
_inputBufferIndex
), cancellationToken).ConfigureAwait(false) :
352
_stream.Read(tempInputBuffer,
_inputBufferIndex
, numWholeBlocksInBytes -
_inputBufferIndex
);
356
int totalInput =
_inputBufferIndex
+ bytesRead;
361
Buffer.BlockCopy(_inputBuffer, 0, tempInputBuffer, 0,
_inputBufferIndex
);
362
CryptographicOperations.ZeroMemory(new Span<byte>(_inputBuffer, 0,
_inputBufferIndex
));
363
bytesRead +=
_inputBufferIndex
;
371
if (
_inputBufferIndex
!= 0)
373
Buffer.BlockCopy(tempInputBuffer, numWholeReadBlocksInBytes, _inputBuffer, 0,
_inputBufferIndex
);
411
Buffer.BlockCopy(tempInputBuffer,
_inputBufferIndex
, _inputBuffer,
_inputBufferIndex
, bytesRead);
425
while (
_inputBufferIndex
< _inputBlockSize)
428
await _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);
541
if (
_inputBufferIndex
> 0)
544
if (buffer.Length >= _inputBlockSize -
_inputBufferIndex
)
547
buffer.Slice(0, _inputBlockSize -
_inputBufferIndex
).CopyTo(_inputBuffer.AsMemory(
_inputBufferIndex
));
548
currentInputIndex += (_inputBlockSize -
_inputBufferIndex
);
549
bytesToWrite -= (_inputBlockSize -
_inputBufferIndex
);
557
buffer.CopyTo(_inputBuffer.AsMemory(
_inputBufferIndex
));
567
if (
_inputBufferIndex
== _inputBlockSize)