RtlUlonglongByteSwap routine

The RtlUlonglongByteSwap routine reverses the ordering of the eight bytes in a 64-bit unsigned integer value.

Syntax


ULONGLONG RtlUlonglongByteSwap(
  _In_ ULONGLONG Source
);

Parameters

Source [in]

A ULONGLONG value to convert to a byte-swapped version.

Return value

The byte-swapped version of the Source input parameter value.

Remarks

For example, if the Source parameter value is 0x0123456789abcdef, the routine returns 0xefcdab8967452301.

A typical use of this routine is to convert a ULONGLONG value from little-endian byte format to big-endian byte format, and vice versa.

To reverse the ordering of bytes in a USHORT value, use the RtlUshortByteSwap routine. To reverse ordering of bytes in a ULONG value, use the RtlUlongByteSwap routine.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

Any level

See also

RtlUlongByteSwap
RtlUshortByteSwap

 

 

Send comments about this topic to Microsoft

Show: