GETBE(2) GETBE(2) NAME getbe, putbe, getle, putle - integer marshalling SYNOPSIS uvlong getbe(uchar *buf, int nbytes) void putbe(uchar *buf, uvlong v, int nbytes) uvlong getle(uchar *buf, int nbytes) void putle(uchar *buf, uvlong v, int nbytes) DESCRIPTION These functions marshal a 1- to 8-byte integer to or from little- or big-endian formats. The size of the integer is specified in bytes, and is not restricted to a power of two. SOURCE /sys/src/libc/port/getbe.c SEE ALSO fcall(2), ip(2) BUGS GBIT* and PBIT* (from fcall(2)) provide similar functional- ity for little-endian integers. The nhget* and nhput* func- tions from ip(2) provide similar functionality for big- endian integers. Page 1 Plan 9 (printed 12/21/24)