aboutsummaryrefslogtreecommitdiffstats
path: root/src/uuid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* cleanup C++20: Cleanup and test Exception* OO tree, ensure only one ↵Sven Göthel2024-05-191-9/+9
| | | | std::exception OO tree instance is included (as they are not using virtual base classes)
* Naming: Free (enum) types: lower case + '_t' (endian_t, lb_endian_t, ↵Sven Göthel2024-05-121-3/+3
| | | | os_type_t, abi_type_t, cpu_family_t, ..); Use (new) singleton CpuInfo caching all jau::cpu information
* cleanup: Place static_assert() in compilation unit once (outside of ↵Sven Göthel2024-04-301-2/+4
| | | | function); to_string(): Pass value for small elements
* Robustness and versatility of byte_util: Use lb_endian enum class instead of ↵Sven Göthel2024-03-021-33/+33
| | | | | | | | | | | | '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).
* C++20: uuid_t: Implement equality operator in polymorphic super-class to ↵Sven Gothel2022-12-301-0/+15
| | | | avoid ambiguity with reversed operands
* uuid.cpp: Use std::make_unique reducing heap footprint of small uuid_tSven Gothel2022-11-271-6/+6
|
* uuid.cpp: Use constexpr endian query instead of __BYTE_ORDER macrosSven Gothel2021-10-041-34/+32
|
* uuid_t: Add uuid_t::equivalent(..) method fo relaxed comparison on different ↵Sven Gothel2021-10-021-0/+10
| | | | | | | | | | | | | uuid_t; Add API doc to uuid_t::operator==(..) .. The operator uuid_t::operator==(..) and uuid_t::operator!=(..) perform strict comparison and will fail on different uuid_t types (TypeSize). Adding convenient relaxed uuid_t::equivalent(..) method, allowing conversion to uuid128_t in case of different types before comparison. Tested with test_uuid.cpp
* Add uuid_t::getTypeSizeString()Sven Gothel2021-10-021-0/+9
|
* Moved EUI48, EUI48Sub (C++/Java) and uuid_t, *Octets (C++) from Direct-BT ↵Sven Gothel2021-09-181-0/+262
for general use. Unit tests included of course.