Instead of 's', use 'n'.
's' is unsigned short in your platform specific/c-compiler format.
'n' is unsigned short in "network" (big endian) format.
In reply to Re: how to unpack a big-endian signed short integer
by BrowserUk
in thread how to unpack a big-endian signed short integer
by robinbowes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |