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

◆ Read() [2/2]

override int System.Net.Http.HttpConnection.ConnectionCloseReadStream.Read ( Span< byte > buffer)
inlinevirtual

Reimplemented from System.Net.Http.HttpBaseStream.

Definition at line 423 of file HttpConnection.cs.

424 {
425 HttpConnection connection = _connection;
426 if (connection == null || buffer.Length == 0)
427 {
428 return 0;
429 }
430 int num = connection.Read(buffer);
431 if (num == 0)
432 {
433 _connection = null;
434 connection.Dispose();
435 }
436 return num;
437 }
int Read(Span< byte > destination)
HttpConnection(HttpConnectionPool pool, Socket socket, Stream stream, TransportContext transportContext)

References System.Net.Http.HttpContentStream._connection, System.buffer, System.Net.Http.HttpConnection.Dispose(), and System.Net.Http.HttpConnection.Read().