1 write to PayloadLength
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1913
PayloadLength
= payloadLength;
29 references to PayloadLength
System.Net.Http (29)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (29)
436
if (frameHeader.
PayloadLength
> FrameHeader.MaxPayloadLength)
450
if (_incomingBuffer.ActiveLength < frameHeader.
PayloadLength
)
452
_incomingBuffer.EnsureAvailableSpace(frameHeader.
PayloadLength
- _incomingBuffer.ActiveLength);
460
if (bytesRead == 0) ThrowPrematureEOF(frameHeader.
PayloadLength
);
462
while (_incomingBuffer.ActiveLength < frameHeader.
PayloadLength
);
666
GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
), frameHeader.PaddedFlag, frameHeader.PriorityFlag),
669
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
682
_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
),
685
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
750
ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
);
771
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
783
ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
), hasPad: frameHeader.PaddedFlag, hasPriority: false);
800
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
814
if (frameHeader.
PayloadLength
!= 0)
831
if ((frameHeader.
PayloadLength
% 6) != 0)
837
ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.
PayloadLength
);
917
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
963
if (frameHeader.StreamId == 0 || frameHeader.
PayloadLength
!= FrameHeader.PriorityInfoLength)
970
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
982
if (frameHeader.
PayloadLength
!= FrameHeader.PingLength)
1004
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1011
if (frameHeader.
PayloadLength
!= FrameHeader.WindowUpdateLength)
1025
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1048
if (frameHeader.
PayloadLength
!= FrameHeader.RstStreamLength)
1062
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1069
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1114
if (frameHeader.
PayloadLength
< FrameHeader.GoAwayMinLength)
1128
_incomingBuffer.Discard(frameHeader.
PayloadLength
);
1953
public override string ToString() => $"StreamId={StreamId}; Type={Type}; Flags={Flags}; PayloadLength={
PayloadLength
}"; // Description for diagnostic purposes