3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
938_arrayPoolBuffer = ArrayPool<byte>.Shared.Rent(bufferSize); 981_arrayPoolBuffer = null!; 1022_arrayPoolBuffer = null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
950int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 953await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 963await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 980ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 993int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 996_destination.Write(_arrayPoolBuffer, 0, bytesRead); 1006_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 1021ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1028Debug.Assert(buffer != _arrayPoolBuffer); 1061int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1064await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1076Debug.Assert(buffer != _arrayPoolBuffer); 1097int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1100_destination.Write(_arrayPoolBuffer, 0, bytesRead);