5 writes to _available
System.Net.WebSockets (5)
System\Net\WebSockets\Compression\WebSocketInflater.cs (5)
91
_available
+= totalBytesReceived;
101
_available
= FlushMarkerLength;
118
_available
+= FlushMarkerLength;
144
_available
-= consumed;
206
_available
= 0;
14 references to _available
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
);
74
Debug.Assert(
_available
> 0);
76
_buffer.AsSpan(_position,
_available
).CopyTo(_buffer);
98
Debug.Assert(
_available
== 0);
106
if (_buffer.Length <
_available
+ FlushMarkerLength)
108
byte[] newBuffer = ArrayPool<byte>.Shared.Rent(
_available
+ FlushMarkerLength);
109
_buffer.AsSpan(0,
_available
).CopyTo(newBuffer);
117
FlushMarker.CopyTo(_buffer.AsSpan(
_available
));
130
if (
_available
> 0 && output.Length > 0)
137
_stream.AvailIn = (uint)
_available
;
140
consumed =
_available
- (int)_stream.AvailIn;
151
if (
_available
== 0)
167
Debug.Assert(
_available
== 0);