Template Function TRAP::Utils::Memory::ConvertByte#

Function Documentation#

template<typename T>
constexpr T TRAP::Utils::Memory::ConvertByte(const u8 *const source)#

Converts the given bytes to the given data type.

Note

Byte order depends on the given input bytes.

Template Parameters:

T – Type to convert bytes to.

Parameters:

source – Bytes to convert.

Returns:

Converted bytes.