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)
940
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
943
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
953
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
963
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
976
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
979
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
989
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
997
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1004
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1037
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1040
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1052
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1073
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1076
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);