3 writes to _buffer
System.Net.WebSockets (3)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (3)
36
_buffer
= null;
49
_buffer
= ArrayPool<byte>.Shared.Rent(Math.Max(payload.Length, MinInitialBufferLength));
71
_buffer
= newBuffer;
7 references to _buffer
System.Net.WebSockets (7)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (7)
34
if (
_buffer
is byte[] toReturn)
43
Debug.Assert(
_buffer
is null, "Invalid state, ReleaseBuffer not called.");
54
DeflatePrivate(payload,
_buffer
.AsSpan(position), endOfMessage,
67
byte[] newBuffer = ArrayPool<byte>.Shared.Rent((int)(
_buffer
.Length * 1.3));
68
_buffer
.AsSpan(0, position).CopyTo(newBuffer);
70
byte[] toReturn =
_buffer
;
76
return new ReadOnlySpan<byte>(
_buffer
, 0, position);