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.
如何从 Qbs 中检查字节顺序(大端或小端)?我不知道在 Qbs 或纯 JavaScript 中执行此操作的任何其他方法。这个想法是避免 Qbs 中的任何其他依赖,例如 node.js' os.endianness()。
os.endianness()
有财产cpp.endianness。
cpp.endianness