Little/Big Endian Converter for SAFEINT

 

This "Endianness converter function" swaps the byte order of SAFEINT data types, thus "switching" between Little Endian and Big Endian format.

Parameter

Data type

Description

IN

SAFEINT

Original byte order

(Little Endian or Big Endian)

OUT

SAFEINT

Reverse byte order (including sign bit):

  • Little Endian if IN = Big Endian

  • Big Endian if IN = Little Endian