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)
969int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 972await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 982await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 999ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1012int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 1015_destination.Write(_arrayPoolBuffer, 0, bytesRead); 1025_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 1040ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1047Debug.Assert(buffer != _arrayPoolBuffer); 1082int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1085await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1105Debug.Assert(buffer != _arrayPoolBuffer); 1128int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1131_destination.Write(_arrayPoolBuffer, 0, bytesRead);