unsigned char OEBFPosTEndian()
bool OEBFPosTEndian(unsigned int)

The first overload returns a character representing the endian-ness of a oefpos_t so that oefpos_t data can be directly written to a file. The second overload interprets this character and returns true if the data will need to be swapped to match the current machine endian-ness.