Developer Documentation
OpenMesh::Endian Class Reference

#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Core/Utils/Endian.hh>

Public Types

enum  Type { LSB = 1 , MSB }
 

Static Public Member Functions

static Type local ()
 Return endian type of host system. More...
 
static const char * as_string (Type _t)
 Return type _t as string. More...
 

Static Private Attributes

static int one_ = 1
 
static const Type local_
 

Detailed Description

Determine byte order of host system.

Definition at line 73 of file Endian.hh.

Member Enumeration Documentation

◆ Type

Enumerator
LSB 

Little endian (Intel family and clones)

MSB 

big endian (Motorola's 68x family, DEC Alpha, MIPS)

Definition at line 77 of file Endian.hh.

Member Function Documentation

◆ as_string()

const char * OpenMesh::Endian::as_string ( Type  _t)
static

Return type _t as string.

Definition at line 74 of file Endian.cc.

◆ local()

static Type OpenMesh::Endian::local ( )
inlinestatic

Return endian type of host system.

Definition at line 83 of file Endian.hh.

Member Data Documentation

◆ local_

const Endian::Type OpenMesh::Endian::local_
staticprivate
Initial value:
= *((unsigned char*)&Endian::one_)
@ LSB
Little endian (Intel family and clones)
Definition: Endian.hh:78
@ MSB
big endian (Motorola's 68x family, DEC Alpha, MIPS)
Definition: Endian.hh:79

Definition at line 90 of file Endian.hh.

◆ one_

int OpenMesh::Endian::one_ = 1
staticprivate

Definition at line 89 of file Endian.hh.


The documentation for this class was generated from the following files: