BRL-CAD
Collaboration diagram for Network Data Sizes:

Macros

#define SIZEOF_NETWORK_SHORT   2 /* htons(), bu_gshort(), bu_pshort() */
 
#define SIZEOF_NETWORK_LONG   4 /* htonl(), bu_glong(), bu_plong() */
 
#define SIZEOF_NETWORK_FLOAT   4 /* htonf() */
 
#define SIZEOF_NETWORK_DOUBLE   8 /* htond() */
 

Detailed Description

Sizes of "network" format data. We use the same convention as the TCP/IP specification, namely, big-Endian, IEEE format, twos complement. This is the BRL-CAD external data representation (XDR). See also the support routines in libbu/xdr.c

Macro Definition Documentation

◆ SIZEOF_NETWORK_SHORT

#define SIZEOF_NETWORK_SHORT   2 /* htons(), bu_gshort(), bu_pshort() */

Definition at line 97 of file cv.h.

◆ SIZEOF_NETWORK_LONG

#define SIZEOF_NETWORK_LONG   4 /* htonl(), bu_glong(), bu_plong() */

Definition at line 98 of file cv.h.

◆ SIZEOF_NETWORK_FLOAT

#define SIZEOF_NETWORK_FLOAT   4 /* htonf() */

Definition at line 99 of file cv.h.

◆ SIZEOF_NETWORK_DOUBLE

#define SIZEOF_NETWORK_DOUBLE   8 /* htond() */

Definition at line 100 of file cv.h.