Created
April 13, 2018 17:08
-
-
Save DevJohnC/dde2557e8e89cb8661ccb7a8b7465909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static UInt16 ToUInt16(byte[] value, int startIndex) | |
{ | |
return (ushort)( | |
value[startIndex + 1] + | |
(value[startIndex] * 256) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment