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

◆ Read() [1/2]

override int System.Net.HttpRequestStream.Read ( byte[] buffer,
int offset,
int count )
inline

Definition at line 144 of file HttpRequestStream.cs.

145 {
146 if (System.Net.NetEventSource.Log.IsEnabled())
147 {
148 System.Net.NetEventSource.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset, "Read");
149 }
151 if (count == 0 || _closed)
152 {
153 return 0;
154 }
155 return ReadCore(buffer, offset, count);
156 }
static void ValidateBufferArguments(byte[] buffer, int offset, int count)
Definition Stream.cs:1044
unsafe int ReadCore(byte[] buffer, int offset, int size)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.HttpRequestStream._closed, System.buffer, System.count, System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.offset, System.Net.HttpRequestStream.ReadCore(), and System.IO.Stream.ValidateBufferArguments().

Referenced by System.Net.WebSockets.WebSocketHttpListenerDuplexStream.Read().