abseil / abseil/abseil-cpp

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

未關閉
#296 6 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。