그러냐

Convert 2 bytes into an integer 본문

C

Convert 2 bytes into an integer

관절분리 2021. 7. 23. 11:32
반응형

int number = buf[0] | buf[1] << 8;

 

 

출처 :  https://stackoverflow.com/questions/17071458/convert-2-bytes-into-an-integer

반응형