80E00866E345AE588D7CD78C1800186742C020D90050079A1000000300100000030320F1832480000568CB83CB2080E00867E3486D788D7CD78C1800186742C020D90050079A1000000300100000030320F1832480000568CB83CB2080E00868E34B2C988D7CD78C1800186742C020D90050079A1000000300100000030320F1832480000568CB83CB2080E00869E34DEBB88D7CD78C1800186742C020D90050079A1000000300100000030320F1832480000568CB83CB2080E0086AE350AAD88D7CD78C1800186742C020D90050079A1000000300100000030320F1832480000568CB83CB20将上述数据转化成一个 guint8 data2[] 的大数组
时间: 2023-12-18 15:03:18 浏览: 115
将数据转换成数组
您可以将上述数据转化为一个 `guint8` 类型的大数组如下:
```c
guint8 data2[] = {
0x80, 0xE0, 0x08, 0x66, 0xE3, 0x45, 0xAE, 0x58, 0x8D, 0x7C, 0xD7, 0x8C, 0x18, 0x00, 0x18, 0x67,
0x42, 0xC0, 0x20, 0xD9, 0x00, 0x50, 0x07, 0x9A, 0x10, 0x00, 0x00, 0x03, 0x00, 0x10, 0x00, 0x00,
0x30, 0x32, 0x0F, 0x18, 0x32, 0x48, 0x00, 0x00, 0x56, 0x8C, 0xB8, 0x3C, 0xB2, 0x08, 0x0E, 0x00,
0x86, 0x7E, 0x34, 0x86, 0xD7, 0x88, 0xD7, 0xCD, 0x78, 0xC1, 0x80, 0x01, 0x86, 0x74, 0x2C, 0x02,
0x0D, 0x90, 0x05, 0x00, 0x79, 0xA1, 0x00, 0x00, 0x03, 0x00, 0x10, 0x00, 0x00, 0x30, 0x32, 0x0F,
0x18, 0x32, 0x48, 0x00, 0x00, 0x56, 0x8C, 0xB8, 0x3C, 0xB2, 0x08, 0x0E, 0x00, 0x86, 0x86, 0xE3,
0x4B, 0x2C, 0x98, 0x8D, 0x7C, 0xD7, 0x8C, 0x18, 0x00, 0x01, 0x86, 0x74, 0x2C, 0x02, 0x0D, 0x90,
0x05, 0x00, 0x79, 0xA1, 0x00, 0x00, 0x03, 0x00, 0x10, 0x00, 0x00, 0x30, 0x32, 0x0F, 0x18, 0x32,
0x48, 0x00, 0x00, 0x56, 0x8C, 0xB8, 0x3C, 0xB2, 0x08, 0x0E, 0x00, 0x86, 0x89, 0xE3, 0x4D, 0xEB,
0xB8, 0x8D, 0x7C, 0xD7, 0x8C, 0x18, 0x00, 0x01, 0x86, 0x74, 0x2C, 0x02, 0x0D, 0x90, 0x05, 0x00,
0x79, 0xA1, 0x00, 0x00, 0x03, 0x00, 0x10, 0x00, 0x00, 0x30, 0x32, 0x0F, 0x18, 0x32, 0x48, 0x00,
0x00, 0x56, 0x8C, 0xB8, 0x3C, 0xB2, 0x08, 0x0E, 0x00, 0x86, 0xAE, 0x35, 0x0A, 0xAD, 0x88, 0xD7,
0xCD, 0x78, 0xC1, 0x80, 0x01, 0x86, 0x74, 0x2C, 0x02, 0x0D, 0x90, 0x05, 0x00, 0x79, 0xA1, 0x00,
0x00, 0x03, 0x00, 0x10, 0x00, 0x00, 0x30, 0x32, 0x0F, 0x18, 0x32, 0x48, 0x00, 0x00, 0x56, 0x8C,
0xB8, 0x3C, 0xB2, 0x08
};
```
这样您就可以使用 `data2` 数组进行后续的操作了。请注意,数组的大小应该与数据的字节数匹配。
阅读全文