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

◆ CopyFromBufferAsync()

ValueTask System.Net.Http.HttpConnection.CopyFromBufferAsync ( Stream destination,
bool async,
int count,
CancellationToken cancellationToken )
inlineprivate

Definition at line 2433 of file HttpConnection.cs.

2434 {
2435 if (System.Net.NetEventSource.Log.IsEnabled())
2436 {
2437 Trace($"Copying {count} bytes to stream.", "CopyFromBufferAsync");
2438 }
2439 int readOffset = _readOffset;
2440 _readOffset += count;
2441 if (async)
2442 {
2444 }
2446 return default(ValueTask);
2447 }
override void Trace(string message, [CallerMemberName] string memberName=null)
static readonly System.Net.NetEventSource Log

References System.Net.Http.HttpConnection._readBuffer, System.Net.Http.HttpConnection._readOffset, System.cancellationToken, System.count, System.destination, System.Net.NetEventSource.Log, and System.Net.Http.HttpConnection.Trace().

Referenced by System.Net.Http.HttpConnection.CopyToContentLengthAsync(), and System.Net.Http.HttpConnection.CopyToUntilEofWithExistingBufferedDataAsync().