4 writes to _buffer
System.Net.WebSockets (4)
System\Net\WebSockets\Compression\WebSocketInflater.cs (4)
83
_buffer
= ArrayPool<byte>.Shared.Rent((int)Math.Min(userBufferLength, payloadLength));
100
_buffer
= ArrayPool<byte>.Shared.Rent(FlushMarkerLength);
112
_buffer
= newBuffer;
205
_buffer
= null;
14 references to _buffer
System.Net.WebSockets (14)
System\Net\WebSockets\Compression\WebSocketInflater.cs (14)
55
public Memory<byte> Memory =>
_buffer
.AsMemory(_position + _available);
57
public Span<byte> Span =>
_buffer
.AsSpan(_position + _available);
72
if (
_buffer
is not null)
76
_buffer
.AsSpan(_position, _available).CopyTo(
_buffer
);
89
Debug.Assert(totalBytesReceived == 0 ||
_buffer
is not null, "Prepare must be called.");
96
if (
_buffer
is null)
102
FlushMarker.CopyTo(
_buffer
);
106
if (
_buffer
.Length < _available + FlushMarkerLength)
109
_buffer
.AsSpan(0, _available).CopyTo(newBuffer);
111
byte[] toReturn =
_buffer
;
117
FlushMarker.CopyTo(
_buffer
.AsSpan(_available));
134
fixed (byte* bufferPtr =
_buffer
)
203
if (
_buffer
is byte[] toReturn)