5 writes to _readResult
Microsoft.AspNetCore.Server.Kestrel.Core (5)
19 references to _readResult
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\Http1ContentLengthMessageBody.cs (19)
39return new ReadResult(_readResult.Buffer, Interlocked.Exchange(ref _userCanceled, 0) == 1, isCompleted: true);
78_context.Input.AdvanceTo(_readResult.Buffer.Start);
88if (_readResult.IsCompleted)
98if (!_readResult.IsCanceled || Interlocked.Exchange(ref _userCanceled, 0) == 1 || _cannotResetInputPipe)
105if (_readResult.IsCompleted)
116return _readResult;
126readResult = new ReadResult(_readResult.Buffer, Interlocked.Exchange(ref _userCanceled, 0) == 1, isCompleted: true);
146if (!_readResult.IsCanceled || Interlocked.Exchange(ref _userCanceled, 0) == 1 || _cannotResetInputPipe)
151_context.Input.AdvanceTo(_readResult.Buffer.Start);
154if (_readResult.IsCompleted)
162_context.Input.AdvanceTo(_readResult.Buffer.Start);
175readResult = _readResult;
187var initialLength = _readResult.Buffer.Length;
197_readResult.Buffer.Slice(0, maxLength),
198_readResult.IsCanceled,
216var buffer = _readResult.Buffer.Slice(consumed, _readResult.Buffer.End);
240_unexaminedInputLength -= TrackConsumedAndExaminedBytes(_readResult, consumed, examined);
270if (_readResult.IsCompleted)