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

◆ Read() [2/2]

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

Reimplemented from System.Net.Http.HttpBaseStream.

Definition at line 880 of file HttpConnection.cs.

881 {
882 HttpConnection connection = _connection;
883 if (connection == null || buffer.Length == 0)
884 {
885 return 0;
886 }
887 int num = connection.ReadBuffered(buffer);
888 if (num == 0)
889 {
890 _connection = null;
891 connection.Dispose();
892 }
893 return num;
894 }
HttpConnection(HttpConnectionPool pool, Socket socket, Stream stream, TransportContext transportContext)
int ReadBuffered(Span< byte > destination)

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