uLib  User mode C/C++ extended API library for Win32 programmers.
Byte Order Swappers

Module Description

Conevrt between little/big endian, and COLORREF/RGBQUAD.

Macros

#define _byteswap_ushort   _bswap16
 
#define _byteswap_ulong   _bswap32
 
#define _byteswap_uint64   _bswap64
 

Functions

UINT16 __cdecl _bswap16 (UINT16 Val)
 
UINT32 __cdecl _bswap32 (UINT32 Val)
 
UINT64 __cdecl _bswap64 (UINT64 Val)
 

Macro Definition Documentation

◆ _byteswap_ushort

#define _byteswap_ushort   _bswap16

Definition at line 692 of file Common.h.

◆ _byteswap_ulong

#define _byteswap_ulong   _bswap32

Definition at line 700 of file Common.h.

◆ _byteswap_uint64

#define _byteswap_uint64   _bswap64

Definition at line 710 of file Common.h.

Function Documentation

◆ _bswap16()

UINT16 __cdecl _bswap16 ( UINT16  Val)

Swap byte order of a 16 bit value. Defined in _bswap.asm

Definition at line 428 of file Common.cpp.

◆ _bswap32()

UINT32 __cdecl _bswap32 ( UINT32  Val)

Swap byte order of a 32 bit value. Defined in _bswap.asm

Definition at line 438 of file Common.cpp.

◆ _bswap64()

UINT64 __cdecl _bswap64 ( UINT64  Val)

Swap byte order of a 64 bit value. Defined in _bswap.asm

Definition at line 449 of file Common.cpp.