mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Updating modified messages for RDA Build 23.0
This commit is contained in:
parent
0ec90737d3
commit
2025698d88
8 changed files with 639 additions and 1029 deletions
|
|
@ -63,6 +63,15 @@ public:
|
|||
return f;
|
||||
}
|
||||
|
||||
static double SwapDouble(double d)
|
||||
{
|
||||
std::uint64_t temp;
|
||||
std::memcpy(&temp, &d, sizeof(std::uint64_t));
|
||||
temp = ntohll(temp);
|
||||
std::memcpy(&d, &temp, sizeof(float));
|
||||
return d;
|
||||
}
|
||||
|
||||
template<std::size_t _Size>
|
||||
static void SwapArray(std::array<float, _Size>& arr,
|
||||
std::size_t size = _Size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue