3 writes to _arrayPoolBuffer
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
886
_arrayPoolBuffer
= ArrayPool<byte>.Shared.Rent(bufferSize);
922
_arrayPoolBuffer
= null!;
956
_arrayPoolBuffer
= null!;
16 references to _arrayPoolBuffer
System.IO.Compression (16)
System\IO\Compression\DeflateZLib\DeflateStream.cs (16)
898
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
901
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
911
await _deflateStream._stream.CopyToAsync(this,
_arrayPoolBuffer
.Length, _cancellationToken).ConfigureAwait(false);
921
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
934
int bytesRead = _deflateStream._inflater.Inflate(
_arrayPoolBuffer
, 0,
_arrayPoolBuffer
.Length);
937
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);
947
_deflateStream._stream.CopyTo(this,
_arrayPoolBuffer
.Length);
955
ArrayPool<byte>.Shared.Return(
_arrayPoolBuffer
);
962
Debug.Assert(buffer !=
_arrayPoolBuffer
);
995
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
998
await _destination.WriteAsync(new ReadOnlyMemory<byte>(
_arrayPoolBuffer
, 0, bytesRead), cancellationToken).ConfigureAwait(false);
1010
Debug.Assert(buffer !=
_arrayPoolBuffer
);
1031
int bytesRead = _deflateStream._inflater.Inflate(new Span<byte>(
_arrayPoolBuffer
));
1034
_destination.Write(
_arrayPoolBuffer
, 0, bytesRead);