Read / write int 8 / 16 / 32 / 64 / 128 functions
Aberta
- Linguagem predominante
- C++
- Estrelas
- 18.1k
- Forks
- 3.2k
- Merge médio
- 20h 36min
- PRs com merge (30d)
- 1
Descrição
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
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.