1 write to PayloadLength
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1904
PayloadLength
= payloadLength;
29 references to PayloadLength
System.Net.Http (29)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (29)
427
if (frameHeader.
PayloadLength
> FrameHeader.MaxPayloadLength)
441
if (_incomingBuffer.ActiveLength < frameHeader.
PayloadLength
)
443
_incomingBuffer.EnsureAvailableSpace(frameHeader.
PayloadLength
- _incomingBuffer.ActiveLength);
451
if (bytesRead == 0) ThrowPrematureEOF(frameHeader.
PayloadLength
);
453
while (_incomingBuffer.ActiveLength < frameHeader.
PayloadLength
);
657
GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
), frameHeader.PaddedFlag, frameHeader.PriorityFlag),
660
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
673
_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
),
676
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
741
ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
);
762
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
774
ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
), hasPad: frameHeader.PaddedFlag, hasPriority: false);
791
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
805
if (frameHeader.
PayloadLength
!= 0)
822
if ((frameHeader.
PayloadLength
% 6) != 0)
828
ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
);
908
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
954
if (frameHeader.StreamId == 0 || frameHeader.
PayloadLength
!= FrameHeader.PriorityInfoLength)
961
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
973
if (frameHeader.
PayloadLength
!= FrameHeader.PingLength)
995
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1002
if (frameHeader.
PayloadLength
!= FrameHeader.WindowUpdateLength)
1016
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1039
if (frameHeader.
PayloadLength
!= FrameHeader.RstStreamLength)
1053
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1060
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1105
if (frameHeader.
PayloadLength
< FrameHeader.GoAwayMinLength)
1119
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1944
public override string ToString() => $"StreamId={StreamId}; Type={Type}; Flags={Flags}; PayloadLength={
PayloadLength
}"; // Description for diagnostic purposes