3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
886_arrayPoolBuffer = ArrayPool<byte>.Shared.Rent(bufferSize); 922_arrayPoolBuffer = null!; 956_arrayPoolBuffer = null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
898int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 901await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 911await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 921ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 934int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 937_destination.Write(_arrayPoolBuffer, 0, bytesRead); 947_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 955ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 962Debug.Assert(buffer != _arrayPoolBuffer); 995int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 998await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1010Debug.Assert(buffer != _arrayPoolBuffer); 1031int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1034_destination.Write(_arrayPoolBuffer, 0, bytesRead);