bool IsLitterEndian() { union UTest { std::uint16_t t; std::uint8_t c; } endianTest{ 0x01 }; return (endianTest.c == 0x01); }
原文地址:https://www.cnblogs.com/fluteary/p/9178627.html
时间: 2024-10-07 15:55:10
bool IsLitterEndian() { union UTest { std::uint16_t t; std::uint8_t c; } endianTest{ 0x01 }; return (endianTest.c == 0x01); }
原文地址:https://www.cnblogs.com/fluteary/p/9178627.html