3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
938
_arrayPoolBuffer
= ArrayPool<byte>.Shared.Rent(bufferSize);
981
_arrayPoolBuffer
= null!;
1022
_arrayPoolBuffer
= null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
950
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
953
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
963
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
980
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
993
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
996
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
1006
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
1021
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
1028
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1061
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1064
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1076
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1097
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1100
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);