Good way to convert between short and bytes?

后端 未结 5 1455
攒了一身酷
攒了一身酷 2021-01-02 09:30

I need to take pairs of bytes in, and output shorts, and take shorts in and output pairs of bytes. Here are the functions i\'ve devised for such a purpose:

s         


        
5条回答
提交回复
热议问题