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

◆ ReadData()

int System.Net.Http.Http2Connection.Http2Stream.ReadData ( Span< byte > buffer,
HttpResponseMessage responseMessage )
inline

Definition at line 1194 of file Http2Connection.cs.

1195 {
1196 if (buffer.Length == 0)
1197 {
1198 return 0;
1199 }
1200 int num;
1201 bool flag;
1203 if (flag)
1204 {
1205 WaitForData();
1207 }
1208 if (num != 0)
1209 {
1210 _windowManager.AdjustWindow(num, this);
1211 }
1212 else
1213 {
1215 }
1216 return num;
1217 }
void MoveTrailersToResponseMessage(HttpResponseMessage responseMessage)
bool int bytesRead TryReadFromBuffer(Span< byte > buffer, bool partOfSyncRead=false)
void AdjustWindow(int bytesConsumed, Http2Stream stream)

References System.Net.Http.Http2Connection.Http2Stream._windowManager, System.Net.Http.Http2Connection.Http2StreamWindowManager.AdjustWindow(), System.buffer, System.Net.Http.Http2Connection.Http2Stream.MoveTrailersToResponseMessage(), System.Net.Http.Http2Connection.Http2Stream.TryReadFromBuffer(), and System.Net.Http.Http2Connection.Http2Stream.WaitForData().