58 writes to PayloadLength
InMemory.FunctionalTests (30)
Http2\Http2ConnectionTests.cs (1)
2738frame.PayloadLength = 7;
Http2\Http2TestBase.cs (24)
669frame.PayloadLength = extendedHeaderLength + length + padLength; 710frame.PayloadLength = extendedHeaderLength + length; 759frame.PayloadLength = extendedHeaderLength + length + padLength; 806frame.PayloadLength = length; 819frame.PayloadLength = payload.Length; 831frame.PayloadLength = length; 842frame.PayloadLength = 6; 859frame.PayloadLength = 0; 875frame.PayloadLength = length; 894frame.PayloadLength = headerBlock.Length; 908frame.PayloadLength = payloadLength; 925frame.PayloadLength = 3; 945frame.PayloadLength = length; 959frame.PayloadLength = payload.Length; 973frame.PayloadLength = length; 998frame.PayloadLength = 0; 1010frame.PayloadLength = 3; 1039frame.PayloadLength = data.Length + 1 + padLength; 1062frame.PayloadLength = frameLength; 1087pingFrame.PayloadLength = length; 1130priorityFrame.PayloadLength = length; 1158frame.PayloadLength = length; 1194frame.PayloadLength = length; 1205frame.PayloadLength = 0;
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
25frame.PayloadLength = payload.Length; 38frame.PayloadLength = length; 58frame.PayloadLength = length; 74frame.PayloadLength = headerData.Length; 90frame.PayloadLength = data.Length;
Microsoft.AspNetCore.Server.Kestrel.Core (18)
Internal\Http2\Http2FrameWriter.cs (8)
509_outgoingFrame.PayloadLength = ContinueBytes.Length; 620_outgoingFrame.PayloadLength = currentSize; 640_outgoingFrame.PayloadLength = payloadLength; 648_outgoingFrame.PayloadLength = payloadLength; 733_outgoingFrame.PayloadLength = (int)dataLength; // Plus padding 754_outgoingFrame.PayloadLength = dataPayloadLength; // Plus padding 771_outgoingFrame.PayloadLength = (int)dataLength; // Plus padding 913_outgoingFrame.PayloadLength = settingsSize;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Continuation.cs (1)
25PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
35PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.GoAway.cs (1)
23PayloadLength = 8;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
47PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Ping.cs (1)
25PayloadLength = 8;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Priority.cs (1)
23PayloadLength = 5;
src\Shared\ServerInfrastructure\Http2\Http2Frame.RstStream.cs (1)
17PayloadLength = 4;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Settings.cs (1)
26PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.WindowUpdate.cs (1)
17PayloadLength = 4;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
64frame.PayloadLength = payloadLength;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
25frame.PayloadLength = payload.Length; 38frame.PayloadLength = length; 58frame.PayloadLength = length; 74frame.PayloadLength = headerData.Length; 90frame.PayloadLength = data.Length;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (5)
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
25frame.PayloadLength = payload.Length; 38frame.PayloadLength = length; 58frame.PayloadLength = length; 74frame.PayloadLength = headerData.Length; 90frame.PayloadLength = data.Length;
34 references to PayloadLength
InMemory.FunctionalTests (17)
Http2\Http2ConnectionTests.cs (2)
1310Assert.True(dataSent >= frame.PayloadLength); 1314dataSent -= frame.PayloadLength;
Http2\Http2StreamTests.cs (3)
2624var buffer = new byte[trailerFrame.PayloadLength + trailierContinuation.PayloadLength]; 2626trailierContinuation.PayloadSequence.CopyTo(buffer.AsSpan(trailerFrame.PayloadLength));
Http2\Http2TestBase.cs (11)
677writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 718writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 767writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 1101return SendAsync(new byte[pingFrame.PayloadLength]); 1117var payload = new byte[priorityFrame.PayloadLength].AsSpan(); 1146var payload = new byte[rstStreamFrame.PayloadLength]; 1169return SendAsync(new byte[frame.PayloadLength]); 1179return SendAsync(new byte[frame.PayloadLength]); 1273Assert.Equal(withLength, frame.PayloadLength); 1293Assert.Equal(8, frame.PayloadLength); 1339Assert.Equal(4, frame.PayloadLength);
Http2\TlsTests.cs (1)
96Assert.Equal(8, frame.PayloadLength);
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http2\Http2Connection.cs (8)
716if (_incomingFrame.DataHasPadding && _incomingFrame.DataPadLength >= _incomingFrame.PayloadLength) 798if (_incomingFrame.HeadersHasPadding && _incomingFrame.HeadersPadLength >= _incomingFrame.PayloadLength - 1) 931if (_incomingFrame.PayloadLength != 5) 951if (_incomingFrame.PayloadLength != 4) 993if (_incomingFrame.PayloadLength != 0) 1001if (_incomingFrame.PayloadLength % 6 != 0) 1075if (_incomingFrame.PayloadLength != 8) 1123if (_incomingFrame.PayloadLength != 4)
Internal\Http2\Http2FrameWriter.cs (3)
967Debug.Assert(payload.Length == _outgoingFrame.PayloadLength); // 8 1015_unflushedBytes += Http2FrameReader.HeaderLength + _outgoingFrame.PayloadLength; 1033Bitshifter.WriteUInt24BigEndian(buffer, (uint)frame.PayloadLength);
Internal\Infrastructure\KestrelTrace.Http2.cs (2)
41Http2Log.Http2FrameReceived(_http2Logger, connectionId, frame.Type, frame.StreamId, frame.PayloadLength, frame.ShowFlags()); 64Http2Log.Http2FrameSending(_http2Logger, connectionId, frame.Type, frame.StreamId, frame.PayloadLength, frame.ShowFlags());
src\Shared\ServerInfrastructure\Http2\Http2Frame.cs (1)
63return $"{Type} Stream: {StreamId} Length: {PayloadLength} Flags: {ShowFlags()}";
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
31public int DataPayloadLength => PayloadLength - DataPayloadOffset - DataPadLength;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
43public int HeadersPayloadLength => PayloadLength - HeadersPayloadOffset - HeadersPadLength;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
83if (extendedHeaderLength > frame.PayloadLength)