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

◆ WriteCore()

unsafe void System.IO.Pipes.PipeStream.WriteCore ( ReadOnlySpan< byte > buffer)
inlineprivate

Definition at line 941 of file PipeStream.cs.

942 {
943 if (buffer.Length == 0)
944 {
945 return;
946 }
947 fixed (byte* bytes = &MemoryMarshal.GetReference(buffer))
948 {
949 int numBytesWritten = 0;
950 if (global::Interop.Kernel32.WriteFile(_handle, bytes, buffer.Length, out numBytesWritten, IntPtr.Zero) == 0)
951 {
953 }
954 }
955 }
Exception WinIOError(int errorCode)

References System.IO.Pipes.PipeStream._handle, System.buffer, System.bytes, System.Runtime.InteropServices.Marshal.GetLastPInvokeError(), System.IO.Pipes.PipeStream.WinIOError(), and System.IntPtr.Zero.

Referenced by System.IO.Pipes.PipeStream.Write(), and System.IO.Pipes.PipeStream.Write().