Read / write int 8 / 16 / 32 / 64 / 128 functions
未关闭
- 主要语言
- C++
- 星标
- 18.1k
- 派生
- 3.2k
- 平均合并
- 20 小时 36 分钟
- 30 天内合并 PR
- 1
描述
In low-level code one sometimes has to read or write integers that may be unaligned, may be big endian, little endian or native. Could functions for this be provided? The non-native ones are non-trivial.
IMO the language itself should provide these as intrinsics but until then..
A reinterpret_cast isn't sufficient: https://github.com/abseil/abseil-cpp/issues/269
贡献指南
评估
这个 Issue 还没有评估数据。