Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created January 6, 2019 08:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MartinZikmund/901a6acfec058bfe28a462bdbd5f1f6e to your computer and use it in GitHub Desktop.
Final version of byte conversion
var result = (ushort)((data[position + 1] << 8) | data[position]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment