public static short ToInt16(ReadOnlySpan <byte> bytes) { return(IPAddress.NetworkToHostOrder(UnsafeBitConverter.ToInt16(bytes))); }
public static void WriteBytes(Span <byte> destination, int value) { UnsafeBitConverter.WriteBytes(destination, IPAddress.HostToNetworkOrder(value)); }