1

2 header field that is 19 bits long. I'm trying to pack the number 921 decimal into hex into it. Least Significant Byte first.

Packing into 24 bits is easy:

921.0 = 0x0399

binary:

9 9 0 3 0 0

1001 1001 0000 0011 0000 0000

and done. Result: 0x990300

How do I do pack this into 19 bits?

4

1 に答える 1