BRL-CAD

Run-time byte order detection. More...

Collaboration diagram for Endian Support:

Files

file  endian.h
 

Enumerations

enum  bu_endian_t { BU_LITTLE_ENDIAN = 1234 , BU_BIG_ENDIAN = 4321 , BU_PDP_ENDIAN = 3412 }
 

Functions

bu_endian_t bu_byteorder (void)
 

Detailed Description

Run-time byte order detection.

Enumeration Type Documentation

◆ bu_endian_t

Enumerator
BU_LITTLE_ENDIAN 

LSB first: i386, VAX order

BU_BIG_ENDIAN 

MSB first: 68000, IBM, network order

BU_PDP_ENDIAN 

LSB first in word, MSW first in long

Definition at line 38 of file endian.h.

Function Documentation

◆ bu_byteorder()

bu_endian_t bu_byteorder ( void  )

returns the platform byte ordering (e.g., big-/little-endian)