I’ve searched around and can’t find anything on what the middle bytes of a >16-bit integer are called, if anything. Are there standard names for these bytes?
E.g. the number 0x0D0C0B0A
would have:
MSB ??? ??? LSB
0D 0C 0B 0A
7
I guess once MSB determines the order, I call them byte 0, byte 1, byte 2, and then either byte 3 or else MSB.
I’ve been developing on embedded systems for a couple of decades, and have the same problem with a sensible naming.
I’ve seen many approachs, including mapping an overlay array of bytes and just using indexes (which does not solve the problem at all as endianness is not taken into account).
I eventually settled on MSB, MMSB, MLSB, LSB (where the extra M means “middle”).
But really, anything at all that you do which is remotely sensible* will suffice.
*sensible in this sense means that there is a name with some kind of rationale behind it. Calling them bob and fred would not be sensible.
1
I call them “bytes”.
So does everyone I’ve worked with. Lacking a commonly used nomenclature, you either adopt a idiosyncratic scheme which no one else will understand, or you throw more words at it when you need to disambiguate.