toNative

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

Convert a value from file endianness to native endianness.

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

Parameters

valueThe value in file endianness.
fileEndianThe endianness of the file.

Returns

The value converted to native endianness.