...

/

Changing Byte Order Using Bitwise Operations

Changing Byte Order Using Bitwise Operations

Learn about an application of bitwise operations known as "byte order conversion".

We'll cover the following...

Endianness

Bitwise operations are widely used in system programming. The specialists of this domain deal with computer networks, device drivers, and OS kernels. Translating data from one format to another is a common operation in these domains.

To understand these types of data translation, let’s suppose we want to write a driver for some peripheral device. The byte order on the device is big-endian. Our computer uses another order, which is ...