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)
947
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
950
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
960
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
970
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
983
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
986
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
996
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
1004
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1011
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1044
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1047
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1059
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1080
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1083
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);