Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetFrameData()

ReadOnlySpan< byte > System.Net.Http.Http2Connection.GetFrameData ( ReadOnlySpan< byte > frameData,
bool hasPad,
bool hasPriority )
inlineprivate

Definition at line 2194 of file Http2Connection.cs.

2195 {
2196 if (hasPad)
2197 {
2198 if (frameData.Length == 0)
2199 {
2201 }
2202 int num = frameData[0];
2203 frameData = frameData.Slice(1);
2204 if (frameData.Length < num)
2205 {
2207 }
2208 frameData = frameData.Slice(0, frameData.Length - num);
2209 }
2210 if (hasPriority)
2211 {
2212 if (frameData.Length < 5)
2213 {
2215 }
2216 frameData = frameData.Slice(5);
2217 }
2218 return frameData;
2219 }

References System.Net.Http.Http2Connection.ThrowProtocolError().

Referenced by System.Net.Http.Http2Connection.ProcessDataFrame(), and System.Net.Http.Http2Connection.ProcessHeadersFrame().