BYTEORDER
Section: Misc. Reference Manual Pages (3bsd)
Page Index
BSD mandoc
NAME
be16enc , be16dec , be32enc , be32dec , be64enc , be64dec
le16enc , le16dec , le32enc , le32dec , le64enc , le64dec
- byte order operations
SYNOPSIS
In sys/endian.h
(See
libbsd(7)
for include usage.)
Ft uint16_t
Fn be16dec const void *
Ft uint32_t
Fn be32dec const void *
Ft uint64_t
Fn be64dec const void *
Ft uint16_t
Fn le16dec const void *
Ft uint32_t
Fn le32dec const void *
Ft uint64_t
Fn le64dec const void *
Ft void
Fn be16enc void * uint16_t
Ft void
Fn be32enc void * uint32_t
Ft void
Fn be64enc void * uint64_t
Ft void
Fn le16enc void * uint16_t
Ft void
Fn le32enc void * uint32_t
Ft void
Fn le64enc void * uint64_t
DESCRIPTION
The
Fn be16enc ,
Fn be16dec ,
Fn be32enc ,
Fn be32dec ,
Fn be64enc ,
Fn be64dec ,
Fn le16enc ,
Fn le16dec ,
Fn le32enc ,
Fn le32dec ,
Fn le64enc ,
and
Fn le64dec
functions encode and decode integers to/from byte strings on any alignment
in big/little endian format.
SEE ALSO
byteorder(3)
HISTORY
The encode/decode functions first appeared in
Fx 5.1 .