4 writes to _outputBuffer
System.Security.Cryptography (4)
System\Security\Cryptography\CryptoStream.cs (4)
71
_outputBuffer
= new byte[_outputBlockSize];
442
_outputBuffer
= _transform.TransformFinalBlock(_inputBuffer, 0, _inputBufferIndex);
789
_outputBuffer
= null!;
840
_outputBuffer
= null!;
24 references to _outputBuffer
System.Security.Cryptography (24)
System\Security\Cryptography\CryptoStream.cs (24)
180
if (
_outputBuffer
!= null)
181
Array.Clear(
_outputBuffer
);
265
Debug.Assert(
_outputBuffer
!= null);
266
byte b =
_outputBuffer
[0];
267
Buffer.BlockCopy(
_outputBuffer
, 1,
_outputBuffer
, 0, _outputBufferIndex - 1);
319
new ReadOnlySpan<byte>(
_outputBuffer
, 0, bytesToCopy).CopyTo(buffer.Span);
321
_outputBuffer
.AsSpan(bytesToCopy).CopyTo(
_outputBuffer
);
322
CryptographicOperations.ZeroMemory(
_outputBuffer
.AsSpan(_outputBufferIndex, bytesToCopy));
443
_outputBufferIndex =
_outputBuffer
.Length;
448
_outputBufferIndex = _transform.TransformBlock(_inputBuffer, 0, _inputBufferIndex,
_outputBuffer
, 0);
569
Debug.Assert(_inputBuffer != null &&
_outputBuffer
!= null);
570
numOutputBytes = _transform.TransformBlock(_inputBuffer, 0, _inputBlockSize,
_outputBuffer
, 0);
573
await _stream.WriteAsync(new ReadOnlyMemory<byte>(
_outputBuffer
, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
575
_stream.Write(
_outputBuffer
, 0, numOutputBytes);
624
Debug.Assert(
_outputBuffer
!= null);
626
numOutputBytes = TransformBlock(_transform, buffer.Slice(currentInputIndex, _inputBlockSize),
_outputBuffer
, 0);
629
await _stream.WriteAsync(new ReadOnlyMemory<byte>(
_outputBuffer
, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
631
_stream.Write(
_outputBuffer
, 0, numOutputBytes);
785
if (
_outputBuffer
!= null)
786
Array.Clear(
_outputBuffer
);
834
if (
_outputBuffer
!= null)
836
Array.Clear(
_outputBuffer
);