First Half and last half
I have question here, how many ways are there to get the first two bytes and last byte from an integer of byte. Also consider the big-end and lil-end.
One solution might be to take an Union containing an integer and two short integer. But here output may be different because of lit-end and big-end. Basically first half and second half has the name and access by the name, and that's why these two variable may have different valud on big-end and lit-end.

Thanks.
First Half and last half
===

I have question here, how many ways are there to get the first two bytes and last byte from an integer of byte. Also consider the big-end and lil-end.
One solution might be to take an Union containing an integer and two short integer. But here output may be different because of lit-end and big-end. Basically first half and second half has the name and access by the name, and that's why these two variable may have different valud on big-end and lit-end.

Thanks.