2 writes to _stream
System.Net.WebSockets (2)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (2)
82
_stream
??= CreateDeflater();
118
_stream
= null;
21 references to _stream
System.Net.WebSockets (21)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (21)
29
_stream
?.Dispose();
117
_stream
.Dispose();
124
Debug.Assert(
_stream
is not null);
129
_stream
.NextIn = (IntPtr)fixedInput;
130
_stream
.AvailIn = (uint)input.Length;
132
_stream
.NextOut = (IntPtr)fixedOutput;
133
_stream
.AvailOut = (uint)output.Length;
138
var errorCode = Deflate(
_stream
, FlushCode.NoFlush);
140
consumed = input.Length - (int)
_stream
.AvailIn;
141
written = output.Length - (int)
_stream
.AvailOut;
148
||
_stream
.AvailIn > 0
155
Debug.Assert(
_stream
is not null);
156
Debug.Assert(
_stream
.AvailIn == 0);
161
_stream
.NextIn = IntPtr.Zero;
162
_stream
.AvailIn = 0;
164
_stream
.NextOut = (IntPtr)fixedOutput;
165
_stream
.AvailOut = (uint)output.Length;
170
ErrorCode errorCode = Deflate(
_stream
, FlushCode.Block);
174
needsMoreBuffer =
_stream
.AvailOut < 6;
184
errorCode = Deflate(
_stream
, FlushCode.SyncFlush);
188
return output.Length - (int)
_stream
.AvailOut;