3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
932
_arrayPoolBuffer
= ArrayPool<byte>.Shared.Rent(bufferSize);
975
_arrayPoolBuffer
= null!;
1016
_arrayPoolBuffer
= null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
944
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
947
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
957
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
974
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
987
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
990
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
1000
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
1015
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1022
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1055
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1058
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1070
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1091
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1094
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);