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

◆ PrepareForOperation()

unsafe void System.IO.Pipes.PipeStream.PipeValueTaskSource.PrepareForOperation ( ReadOnlyMemory< byte > memory = default(ReadOnlyMemory<byte>))
inlinepackageinherited

Definition at line 48 of file PipeStream.cs.

49 {
50 _result = 0uL;
51 _memoryHandle = memory.Pin();
53 }
readonly PreAllocatedOverlapped _preallocatedOverlapped
Definition PipeStream.cs:19
ThreadPoolBoundHandle _threadPoolBinding
unsafe NativeOverlapped * AllocateNativeOverlapped(IOCompletionCallback callback, object? state, object? pinData)
unsafe MemoryHandle Pin()

References System.IO.Pipes.PipeStream.PipeValueTaskSource._memoryHandle, System.IO.Pipes.PipeStream.PipeValueTaskSource._overlapped, System.IO.Pipes.PipeStream.PipeValueTaskSource._pipeStream, System.IO.Pipes.PipeStream.PipeValueTaskSource._preallocatedOverlapped, System.IO.Pipes.PipeStream.PipeValueTaskSource._result, System.IO.Pipes.PipeStream._threadPoolBinding, and System.Threading.ThreadPoolBoundHandle.AllocateNativeOverlapped().

Referenced by System.IO.Pipes.PipeStream.ReadAsyncCore(), System.IO.Pipes.NamedPipeServerStream.WaitForConnectionCoreAsync(), and System.IO.Pipes.PipeStream.WriteAsyncCore().