ntohs

[DllImport("ws2_32.dll", SetLastError = true)]
public static extern ushort ntohs(
   ushort netshort
);

Microsoft documentation: Link

Last updated