Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
brendian.cpp File Reference
Include dependency graph for brendian.cpp:

Functions

uint16_t BURGER_API _swapendian16 (uint16_t uInput) BURGER_NOEXCEPT
 Swap endian of a 16 bit integer.
 
uint32_t BURGER_API _swapendian32 (uint32_t uInput) BURGER_NOEXCEPT
 Swap endian of a 32 bit integer.
 
uint64_t BURGER_API _swapendian64 (uint64_t uInput) BURGER_NOEXCEPT
 Swap endian of a 64 bit integer.
 

Function Documentation

◆ _swapendian16()

uint16_t BURGER_API _swapendian16 ( uint16_t uInput)
noexcept

Swap endian of a 16 bit integer.


Reverse the endian of a 16 bit integer. Implemented in assembly on some platforms.

Parameters
uInputThe value to return endian swapped
Returns
Input endian swapped
See also
_swapendian32(uint32_t), or _swapendian64(uint64_t)

◆ _swapendian32()

uint32_t BURGER_API _swapendian32 ( uint32_t uInput)
noexcept

Swap endian of a 32 bit integer.


Reverse the endian of a 32 bit integer. Implemented in assembly on some platforms.

Parameters
uInputThe value to return endian swapped
Returns
Input endian swapped
See also
_swapendian16(uint16_t), or _swapendian64(uint64_t)

◆ _swapendian64()

uint64_t BURGER_API _swapendian64 ( uint64_t uInput)
noexcept

Swap endian of a 64 bit integer.


64 bit operations for endian swap are specialized on different platforms since some forms require the return value to be in a structure.

Parameters
uInput64 integer to swap endian.
Returns
Input with all 8 bytes reversed.
See also
_swapendian16(uint16_t), or _swapendian32(uint32_t)