23.01.2024, 12:28
You can multiply one byte by 256 then add the other one:
You might need to change which bytes to use and in what order, depending on how the source value is encoded.
Code:
b = b1 * 256 + b2
You might need to change which bytes to use and in what order, depending on how the source value is encoded.