3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
935_arrayPoolBuffer = ArrayPool<byte>.Shared.Rent(bufferSize); 971_arrayPoolBuffer = null!; 1005_arrayPoolBuffer = null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
947int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 950await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false); 960await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false); 970ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 983int bytesRead = _deflateStream._inflater.Inflate(_arrayPoolBuffer, 0, _arrayPoolBuffer.Length); 986_destination.Write(_arrayPoolBuffer, 0, bytesRead); 996_deflateStream._stream.CopyTo(this, _arrayPoolBuffer.Length); 1004ArrayPool<byte>.Shared.Return(_arrayPoolBuffer); 1011Debug.Assert(buffer != _arrayPoolBuffer); 1044int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1047await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false); 1059Debug.Assert(buffer != _arrayPoolBuffer); 1080int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(_arrayPoolBuffer)); 1083_destination.Write(_arrayPoolBuffer, 0, bytesRead);