c - Is it necessary to check for endianness with unsigned 8-bit integers? -
I am sending data between C TCP socket server and C # TCP client.
The C # client is sending data. The .NET Framework Type is an array of System.Byte, which is an unsigned 8-bit integer.
From the C server, the data being sent is an array of C, type four, which is also an unsigned 8-bit integer.
The interval I have read is that when dealing with 16 + bit integers, that is, when you have more than 1 byte, order bites are either in Little Endian and Big Endian.
Since I am only sending 8-bit arrays, do I need to worry about endlessness? I have not been able to find a clear answer yet.
Thank you.
Your intuition is correct: An end to 8-bit integer is irrelevant; It only comes in play for those types which are more comprehensive than a byte.
Comments
Post a Comment