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.
我String::unpack用来从二进制流中解压缩一堆整数和加倍。如何从该比特流中解压缩单个比特?我找不到使用 unpack 解码单个位的特定指令。
String::unpack
解包可以下降到字节级别。您可以使用“C”格式读取无符号字节,然后可以使用位掩码查询单个映射。