Skip to content
TO_NATIVE_ENDIAN2

TO_NATIVE_ENDIAN2

TO_NATIVE_ENDIAN2

Description

Maintains native endianness for 16-bit values. This is a no-op that returns the value unchanged.

Parameters

Name Direction Description
x in 16-bit value in native byte order

Success

Returns value in native byte order (unchanged).

Failure

Function cannot fail - pure passthrough operation.

Usage example (Cross-references)

Usage examples (Cross-references)
        }
    
        *v = TO_NATIVE_ENDIAN2(*v);
    
        return i + 2; // Advance the stream pointer by 2 bytes.
Last updated on