terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ SendAsyncForNetworkStream()

ValueTask System.Net.Sockets.Socket.SendAsyncForNetworkStream ( ReadOnlyMemory< byte > buffer,
SocketFlags socketFlags,
CancellationToken cancellationToken )
inlinepackage

Definition at line 55 of file Socket.cs.

56 {
57 Task task = Task.FromCanceled(cancellationToken);
59 bool flag = awaitableSocketAsyncEventArgs.Reserve();
60 Memory<byte> memory = MemoryMarshal.AsMemory(buffer);
62 int num = 1;
63 awaitableSocketAsyncEventArgs.<SocketFlags>k__BackingField = cancellationToken;
64 awaitableSocketAsyncEventArgs.<WrapExceptionsInIOExceptions>k__BackingField = num != 0;
65 return awaitableSocketAsyncEventArgs.SendAsyncForNetworkStream(this);
66 }
class f__AnonymousType0<< Count > j__TPar
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.2.cs:1591

References System.Threading.Tasks.Task< TResult >.FromCanceled(), j__TPar, System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.Reserve(), and System.task.