mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-11 10:45:05 +00:00
23 lines
601 B
C#
23 lines
601 B
C#
using ICD.Common.Properties;
|
|
|
|
namespace ICD.Common.Utils
|
|
{
|
|
/// <summary>
|
|
/// Static class containing useful utilities for use in S+ programs
|
|
/// </summary>
|
|
[PublicAPI("S+")]
|
|
public static class SPlusUtils
|
|
{
|
|
/// <summary>
|
|
/// Convert two ushort's to an int
|
|
/// </summary>
|
|
/// <param name="lowWord">ushort for the least significant 16 bits</param>
|
|
/// <param name="highWord">ushort for the most significant 1 bits</param>
|
|
/// <returns></returns>
|
|
[PublicAPI("S+")]
|
|
public static int ConvertToInt(ushort lowWord, ushort highWord)
|
|
{
|
|
return (highWord << 16) + lowWord;
|
|
}
|
|
}
|
|
} |