fromNative

fnT fromNative(T)(T value, ElfEndian fileEndian) if (isIntegral!T) pure nothrow @nogc @safe

Convert a value from native endianness to file endianness.

This template function converts an integral value from the host system's native endianness to the specified file endianness.

Parameters

valueThe value in native endianness.
fileEndianThe endianness to convert to.

Returns

The value converted to file endianness.