diff options
author | Sven Göthel <[email protected]> | 2024-03-02 20:43:33 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-03-02 20:43:33 +0100 |
commit | 147e17b0b41a123b2f4040cbd6df5b73b7e97164 (patch) | |
tree | 7b6c87534a05ea05bcc0f959848be2d96cc9e193 /include/jau/ct_utils.hpp | |
parent | 94daf14c92546342180fd17e4b2ce84ff866f41b (diff) |
Robustness and versatility of byte_util: Use lb_endian enum class instead of 'boolean isLittleEndian'; Remove 'nsize_t byte_offset' and rely on given pointer
Using a byte offset of type nsize_t would potentially reduce addressable space on a given platform
and is not required for C++ as the pointer arithmetic can be used by the caller.
Dropping the byte offset exposed the weakness of using a bool type for the little- big-endian switch,
as an integer is automatically converted to bool.
Hence we now use an enum class lb_endian only denoting little-, big-endian
and additional native (the actual platform's encoding).
Diffstat (limited to 'include/jau/ct_utils.hpp')
0 files changed, 0 insertions, 0 deletions