Functions

  • ByteOrder GetCurrent ()

    This returns the byte order of the current system.

    Returns

    The byte order of the current system.

    Defined at line 51 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint16_t Swap16 (uint16_t inValue)

    This unconditionally performs a byte order swap by value of the

    specified 16-bit value.

    Parameters

    inValue [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 64 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint32_t Swap32 (uint32_t inValue)

    This unconditionally performs a byte order swap by value of the

    specified 32-bit value.

    Parameters

    inValue [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 77 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint64_t Swap64 (uint64_t inValue)

    This unconditionally performs a byte order swap by value of the

    specified 64-bit value.

    Parameters

    inValue [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 90 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • void Swap16 (uint16_t * inValue)

    This unconditionally performs a byte order swap by pointer in place

    of the specified 16-bit value.

    Parameters

    inValue [in] A pointer to the 16-bit value to be byte order swapped.

    Defined at line 107 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • void Swap32 (uint32_t * inValue)

    This unconditionally performs a byte order swap by pointer in place

    of the specified 32-bit value.

    Parameters

    inValue [in] A pointer to the 32-bit value to be byte order swapped.

    Defined at line 124 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • void Swap64 (uint64_t * inValue)

    This unconditionally performs a byte order swap by pointer in place

    of the specified 64-bit value.

    Parameters

    inValue [in] A pointer to the 64-bit value to be byte order swapped.

    Defined at line 141 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint16_t Swap16LittleToHost (uint16_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 16-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 159 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint32_t Swap32LittleToHost (uint32_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 32-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 177 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint64_t Swap64LittleToHost (uint64_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 64-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 195 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint16_t Swap16HostToLittle (uint16_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 16-bit value, presumed to

    be in target system (i.e. host) byte ordering to little endian byte

    ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 213 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint32_t Swap32HostToLittle (uint32_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 32-bit value, presumed to

    be in target system (i.e. host) byte ordering to little endian byte

    ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 231 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint64_t Swap64HostToLittle (uint64_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 64-bit value, presumed to

    be in target system (i.e. host) byte ordering to little endian byte

    ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    inValue [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 249 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint16_t Swap16BigToHost (uint16_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 16-bit value, presumed to

    be in big endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 267 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint32_t Swap32BigToHost (uint32_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 32-bit value, presumed to

    be in big endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 285 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint64_t Swap64BigToHost (uint64_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 64-bit value, presumed to

    be in big endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 303 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint16_t Swap16HostToBig (uint16_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 16-bit value, presumed to

    be in target system (i.e. host) byte ordering to big endian byte

    ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 321 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint32_t Swap32HostToBig (uint32_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 32-bit value, presumed to

    be in target system (i.e. host) byte ordering to big endian byte

    ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 339 of file ../../third_party/nlio/include/nlbyteorder.hpp

  • uint64_t Swap64HostToBig (uint64_t inValue)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 64-bit value, presumed to

    be in target system (i.e. host) byte ordering to big endian byte

    ordering.

    Consequently, on little endian target systems, this performs a

    reordering and on big endian target systems, this is a no-op.

    Parameters

    inValue [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, byte order swapped.

    Defined at line 357 of file ../../third_party/nlio/include/nlbyteorder.hpp