3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
977_arrayPoolBuffer = ArrayPool<byte>.Shared.Rent(bufferSize); 1040_arrayPoolBuffer = null!; 1101_arrayPoolBuffer = null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
999int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 1002await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 1012await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 1039ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1062int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 1065_destination.Write(_arrayPoolBuffer, 0, bytesRead); 1075_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 1100ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1107Debug.Assert(buffer != _arrayPoolBuffer); 1142int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1145await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1165Debug.Assert(buffer != _arrayPoolBuffer); 1188int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1191_destination.Write(_arrayPoolBuffer, 0, bytesRead);