chrome-native-messaging
chrome-native-messaging copied to clipboard
Use native byte order instead of little-endian.
Per Google's documentation, the length of the message will be sent in the native byte-order, and so neither big nor little endianness can be assumed. This simply wraps the relevant read/write calls in an endianness check.