38 writes to PayloadLength
http2cat (38)
src\Shared\Http2cat\Http2Utilities.cs (28)
191frame.PayloadLength = length; 211frame.PayloadLength = length; 298frame.PayloadLength = extendedHeaderLength + length + padLength; 337frame.PayloadLength = extendedHeaderLength + length; 384frame.PayloadLength = extendedHeaderLength + length + padLength; 417frame.PayloadLength = payload.Length; 438frame.PayloadLength = length; 451frame.PayloadLength = payload.Length; 463frame.PayloadLength = length; 474frame.PayloadLength = 6; 491frame.PayloadLength = 0; 507frame.PayloadLength = length; 521frame.PayloadLength = headerBlock.Length; 535frame.PayloadLength = payloadLength; 552frame.PayloadLength = 3; 572frame.PayloadLength = length; 586frame.PayloadLength = payload.Length; 600frame.PayloadLength = length; 614frame.PayloadLength = 0; 626frame.PayloadLength = 3; 644frame.PayloadLength = data.Length; 657frame.PayloadLength = data.Length + 1 + padLength; 680frame.PayloadLength = frameLength; 705pingFrame.PayloadLength = length; 748priorityFrame.PayloadLength = length; 776frame.PayloadLength = length; 817frame.PayloadLength = length; 828frame.PayloadLength = 0;
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;
18 references to PayloadLength
http2cat (18)
src\Shared\Http2cat\Http2Utilities.cs (14)
258Bitshifter.WriteUInt24BigEndian(buffer, (uint)frame.PayloadLength); 306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength)); 719return SendAsync(new byte[pingFrame.PayloadLength]); 735var payload = new byte[priorityFrame.PayloadLength].AsSpan(); 764var payload = new byte[rstStreamFrame.PayloadLength]; 787return SendAsync(new byte[frame.PayloadLength]); 797return SendAsync(new byte[frame.PayloadLength]); 877Assert.Equal(withLength, frame.PayloadLength); 919Assert.Equal(length, frame.PayloadLength); 925Assert.Equal(8, frame.PayloadLength); 937Assert.Equal(4, frame.PayloadLength); 969Assert.Equal(4, frame.PayloadLength);
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)