Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个结构,其中有 4 个字节指出我接下来应该在哪里阅读。字节似乎是:(50, -121, 5, 0只是一个样本)
50, -121, 5, 0
我一直在寻找如何转换byte[] to int但没有找到任何解决方案。
byte[] to int
ByteBuffer.wrap(bytes).getInt();