Skip to content
Commit cac17e85 authored by Johan Hedberg's avatar Johan Hedberg Committed by Inaky Perez-Gonzalez
Browse files

misc/byteorder.h: Add helpers to get & put unaligned integers



These helpers provide a way to read and write data buffers containing
multi-byte integers with a specific endianness. They are particularly
convenient for network protocol encoding and decoding.

Change-Id: I09ad125a1bbc4510b97a1d75c83cb70d893e22e8
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 55209323
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment