There are 3 fields in a 4bytes of a packet of length 8, 12 and 12 bits. Each field should be encoded in little endian format. How do I reliably encode fields which are shorter than a word? Is reversing the bit the only option?
-- Thanks.
There are 3 fields in a 4bytes of a packet of length 8, 12 and 12 bits. Each field should be encoded in little endian format. How do I reliably encode fields which are shorter than a word? Is reversing the bit the only option?
-- Thanks.