我从网上只找到1字节的收发的资料,我想读24位的数据能实现吗?怎么把数据合并,具体代码怎么写呢?求详细的相关码源,最好有注释,谢谢哪位大
那你就读3次啊。long value = 0;value = readOneByte();value <<= 8;value |= readOneByte();value <<= 8;value |= readOneByte();return value;