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

◆ TryWriteBytes() [1/11]

static bool System.BitConverter.TryWriteBytes ( Span< byte > destination,
bool value )
inlinestatic

Definition at line 19 of file BitConverter.cs.

20 {
21 if (destination.Length < 1)
22 {
23 return false;
24 }
25 Unsafe.WriteUnaligned(ref MemoryMarshal.GetReference(destination), (byte)(value ? 1 : 0));
26 return true;
27 }

References System.destination, and System.value.

Referenced by System.Net.Sockets.IOControlKeepAlive.Fill(), and System.Net.Sockets.IOControlKeepAlive.Get().