Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
First (wrong) approach for converting two little-endian bytes to ushort
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