diff --git a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj index 58798fb..80364f1 100644 --- a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj +++ b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj @@ -186,6 +186,7 @@ + diff --git a/ICD.Common.Utils/SPlusUtils.cs b/ICD.Common.Utils/SPlusUtils.cs new file mode 100644 index 0000000..8e43542 --- /dev/null +++ b/ICD.Common.Utils/SPlusUtils.cs @@ -0,0 +1,20 @@ +using ICD.Common.Properties; + +namespace ICD.Common.Utils +{ + [PublicAPI("S+")] + public static class SPlusUtils + { + /// + /// Convert two ushort's to an int + /// + /// ushort for the least significant 16 bits + /// ushort for the most significant 1 bits + /// + [PublicAPI("S+")] + public static int ConvertToInt(ushort lowWord, ushort highWord) + { + return (highWord << 16) + lowWord; + } + } +} \ No newline at end of file