abseil / abseil/abseil-cpp

Read / write int 8 / 16 / 32 / 64 / 128 functions

Đang mở
#296 6 bình luận 1 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.