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

◆ WriteWithoutBufferingAsync()

ValueTask System.Net.Http.HttpConnection.WriteWithoutBufferingAsync ( ReadOnlyMemory< byte > source,
bool async )
inlineprivate

Definition at line 1971 of file HttpConnection.cs.

1972 {
1973 if (_writeOffset == 0)
1974 {
1976 }
1977 int num = _writeBuffer.Length - _writeOffset;
1978 if (source.Length <= num)
1979 {
1981 return FlushAsync(async);
1982 }
1984 }
ValueTask WriteToStreamAsync(ReadOnlyMemory< byte > source, bool async)
ValueTask FlushAsync(bool async)
void WriteToBuffer(ReadOnlySpan< byte > source)
async ValueTask FlushThenWriteWithoutBufferingAsync(ReadOnlyMemory< byte > source, bool async)

References System.Net.Http.HttpConnection._writeOffset, System.Net.Http.HttpConnection.FlushAsync(), System.Net.Http.HttpConnection.FlushThenWriteWithoutBufferingAsync(), System.source, System.Net.Http.HttpConnection.WriteToBuffer(), and System.Net.Http.HttpConnection.WriteToStreamAsync().

Referenced by System.Net.Http.HttpConnection.RawConnectionStream.WriteAsync().