3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
928_arrayPoolBuffer = ArrayPool<byte>.Shared.Rent(bufferSize); 964_arrayPoolBuffer = null!; 998_arrayPoolBuffer = null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
940int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 943await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 953await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 963ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 976int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 979_destination.Write(_arrayPoolBuffer, 0, bytesRead); 989_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 997ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1004Debug.Assert(buffer != _arrayPoolBuffer); 1037int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1040await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1052Debug.Assert(buffer != _arrayPoolBuffer); 1073int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1076_destination.Write(_arrayPoolBuffer, 0, bytesRead);