【发布时间】:2017-04-15 18:11:26
【问题描述】:
我想将以下c++代码迁移到c#
https://www.unknowncheats.me/forum/counterstrike-global-offensive/186820-cs-matchid-4.html
我的问题在这里, 我如何在 C# 中做到这一点
uint64_t matchid = *reinterpret_cast<uint64_t*>(result.data());
uint64_t outcomeId = *reinterpret_cast<uint64_t*>(result.data() + 8);
uint16_t tokenId = *reinterpret_cast<uint16_t*>(result.data() + 16);
结果一定是这样的
matchId: 3203527750019186923, 结果ID:3203531838828052697, 令牌ID:13431
谢谢
【问题讨论】: