Gromacs  2025-dev-20240913-b871546
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{inmemoryserializer.cpp} Namespace Reference

Functions

template<typename T >
swapEndian (const T &value)
 Return value with the byte order swapped.
 
EndianSwapBehavior setEndianSwapBehaviorFromHost (EndianSwapBehavior endianSwapBehavior)
 Change the host-dependent endian settings to either Swap or DoNotSwap. More...
 

Function Documentation

EndianSwapBehavior gmx::anonymous_namespace{inmemoryserializer.cpp}::setEndianSwapBehaviorFromHost ( EndianSwapBehavior  endianSwapBehavior)

Change the host-dependent endian settings to either Swap or DoNotSwap.

Parameters
endianSwapBehaviorinput swap behavior, might depend on host.
Returns
Host-independent setting, either Swap or DoNotSwap.