TO_NATIVE_ENDIAN4

Table of Contents

TO_NATIVE_ENDIAN4

Description

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

Parameters

NameDirectionDescription
xin32-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)

    }
    
    *v = TO_NATIVE_ENDIAN4(*v);
    
    return i + 4; // Advance the stream pointer by 4 bytes.

Share :

Related Posts

TO_BIG_ENDIAN4

TO_BIG_ENDIAN4 Description Conditionally converts value from native byte order to big-endian. On little-endian systems, this inverts the byte order. On big-endian systems, this is a no-op.

Read More

FROM_LITTLE_ENDIAN4

FROM_LITTLE_ENDIAN4 Description Conditionally converts value from little-endian to native byte order. On big-endian systems, this inverts the byte order. On little-endian systems, this is a no-op.

Read More

FROM_BIG_ENDIAN4

FROM_BIG_ENDIAN4 Description Conditionally converts value from big-endian to native byte order. On little-endian systems, this inverts the byte order. On big-endian systems, this is a no-op.

Read More