fix: Misspelling of Endianness (#1609)

### Problem description
fix 40 typos

### Implementation description
`endianess` => `endianness`

Signed-off-by: RoboSchmied <github@roboschmie.de>
This commit is contained in:
RoboSchmied
2024-03-28 22:25:28 +01:00
committed by GitHub
parent aeabc0c436
commit cc593fb6c4
11 changed files with 40 additions and 40 deletions

View File

@@ -152,7 +152,7 @@ namespace hex {
using SizeType = typename SizeTypeImpl<Size>::Type;
template<typename T>
[[nodiscard]] constexpr T changeEndianess(const T &value, size_t size, std::endian endian) {
[[nodiscard]] constexpr T changeEndianness(const T &value, size_t size, std::endian endian) {
if (endian == std::endian::native)
return value;
@@ -172,8 +172,8 @@ namespace hex {
}
template<typename T>
[[nodiscard]] constexpr T changeEndianess(const T &value, std::endian endian) {
return changeEndianess(value, sizeof(value), endian);
[[nodiscard]] constexpr T changeEndianness(const T &value, std::endian endian) {
return changeEndianness(value, sizeof(value), endian);
}
[[nodiscard]] constexpr u128 bitmask(u8 bits) {