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 還沒有評估資料。