Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
gensio_bswap(3)		   Library Functions Manual	       gensio_bswap(3)

NAME
       gensio_bswap_16,	 gensio_bswap_32,  gensio_bswap_64,  GENSIO_IS_BIG_EN-
       DIAN,	GENSIO_IS_LITTLE_ENDIAN,     gensio_bswap_16_from_be,	  gen-
       sio_bswap_32_from_be,  gensio_bswap_64_from_be,	gensio_bswap_16_to_be,
       gensio_bswap_32_to_be, gensio_bswap_64_to_be,  gensio_bswap_16_from_le,
       gensio_bswap_32_from_le,		 gensio_bswap_64_from_le,	  gen-
       sio_bswap_16_to_le, gensio_bswap_32_to_le, gensio_bswap_64_to_le	- Byte
       swapping	routines.

SYNOPSIS
       #include	<gensio/gensio_byteswap.h>

       uint[16|32|64]_t	gensio_bswap_[16|32|64](v)

       uint[16|32|64]_t	gensio_bswap_[16|32|64]_[from|to]_[be|le](v)

DESCRIPTION
       These routine perform normal byte swapping operations in	 16,  32,  and
       64-bit  values.	The gensio_bswap_[16|32|64]() perform an unconditional
       byte swap.   The	 gensio_bswap_[16|32|64]_[from|to]_[be|le]  will  byte
       swap from/to the	given endianness depending on the host platforms endi-
       anness.

       GENSIO_IS_BIG_ENDIAN  and GENSIO_IS_LITTLE_ENDIAN will be true or false
       depending on the	host endian's endianness.

RETURN VALUES
       The integer, byte swapped, will be returned.

SEE ALSO
       gensio(5)

				  04 Jan 2025		       gensio_bswap(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=gensio_bswap&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help