Read / write int 8 / 16 / 32 / 64 / 128 functions
Đang mở
- Ngôn ngữ chính
- C++
- Star
- 18.1k
- Fork
- 3.2k
- Merge trung bình
- 20 giờ 36 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.