le64enc (3)
Leading comments
Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the docume...
NAME
be16enc , be16dec , be32enc , be32dec , be64enc , be64dec le16enc , le16dec , le32enc , le32dec , le64enc , le64dec - byte order operationsSYNOPSIS
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_tDESCRIPTION
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 .