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(); 124Debug.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; 138var errorCode = Deflate(_stream, FlushCode.NoFlush); 140consumed = input.Length - (int)_stream.AvailIn; 141written = output.Length - (int)_stream.AvailOut; 148|| _stream.AvailIn > 0 155Debug.Assert(_stream is not null); 156Debug.Assert(_stream.AvailIn == 0); 161_stream.NextIn = IntPtr.Zero; 162_stream.AvailIn = 0; 164_stream.NextOut = (IntPtr)fixedOutput; 165_stream.AvailOut = (uint)output.Length; 170ErrorCode errorCode = Deflate(_stream, FlushCode.Block); 174needsMoreBuffer = _stream.AvailOut < 6; 184errorCode = Deflate(_stream, FlushCode.SyncFlush); 188return output.Length - (int)_stream.AvailOut;