3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
957
_arrayPoolBuffer
= ArrayPool<byte>.Shared.Rent(bufferSize);
1000
_arrayPoolBuffer
= null!;
1041
_arrayPoolBuffer
= null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
969
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
972
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
982
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
999
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1012
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
1015
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
1025
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
1040
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1047
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1082
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1085
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1105
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1128
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1131
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);