NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::endian Namespace Reference

Functions

template<typename dtype >
dtype byteSwap (dtype value) noexcept
 
bool isLittleEndian () noexcept
 

Function Documentation

◆ byteSwap()

template<typename dtype >
dtype nc::endian::byteSwap ( dtype  value)
noexcept

Swaps the bytes of the input value

Parameters
value
Returns
byte swapped value

◆ isLittleEndian()

bool nc::endian::isLittleEndian ( )
inlinenoexcept

Determines the endianess of the system

Returns
bool true if the system is little endian