Answers for "how to merge 2 bytes into an integer"

C
0

how to merge 2 bytes into an integer

int number = buf[0] | buf[1] << 8;
Posted by: Guest on October-18-2021

Code answers related to "how to merge 2 bytes into an integer"

Code answers related to "C"

Browse Popular Code Answers by Language