openMSX
Classes | Typedefs | Functions
Endian Namespace Reference

Classes

struct  Ident
struct  BSwap
class  EndianT
struct  ConvBig< true >
struct  ConvBig< false >
struct  ConvLittle< true >
struct  ConvLittle< false >
class  UA_B16
class  UA_L16
class  UA_B32
class  UA_L32
struct  Little< uint8_t >
struct  Little< uint16_t >
struct  Little< uint32_t >
struct  Big< uint8_t >
struct  Big< uint16_t >
struct  Big< uint32_t >

Typedefs

typedef EndianT< uint16_t,
ConvBig
< openmsx::OPENMSX_BIGENDIAN > > 
B16
typedef EndianT< uint16_t,
ConvLittle
< openmsx::OPENMSX_BIGENDIAN > > 
L16
typedef EndianT< uint32_t,
ConvBig
< openmsx::OPENMSX_BIGENDIAN > > 
B32
typedef EndianT< uint32_t,
ConvLittle
< openmsx::OPENMSX_BIGENDIAN > > 
L32

Functions

 static_assert (sizeof(B16)==2,"must have size 2")
 static_assert (sizeof(B32)==4,"must have size 4")
 static_assert (ALIGNOF(B16)<=2,"may have alignment 2")
 static_assert (ALIGNOF(B32)<=4,"may have alignment 4")
 static_assert (sizeof(UA_B16)==2,"must have size 2")
 static_assert (sizeof(UA_L16)==2,"must have size 2")
 static_assert (sizeof(UA_B32)==4,"must have size 4")
 static_assert (sizeof(UA_L32)==4,"must have size 4")
 static_assert (ALIGNOF(UA_B16)==1,"must have alignment 1")
 static_assert (ALIGNOF(UA_L16)==1,"must have alignment 1")
 static_assert (ALIGNOF(UA_B32)==1,"must have alignment 1")
 static_assert (ALIGNOF(UA_L32)==1,"must have alignment 1")

Typedef Documentation

typedef EndianT<uint16_t, ConvBig <openmsx::OPENMSX_BIGENDIAN> > Endian::B16

Definition at line 126 of file endian.hh.

typedef EndianT<uint32_t, ConvBig <openmsx::OPENMSX_BIGENDIAN> > Endian::B32

Definition at line 128 of file endian.hh.

typedef EndianT<uint16_t, ConvLittle<openmsx::OPENMSX_BIGENDIAN> > Endian::L16

Definition at line 127 of file endian.hh.

typedef EndianT<uint32_t, ConvLittle<openmsx::OPENMSX_BIGENDIAN> > Endian::L32

Definition at line 129 of file endian.hh.

Function Documentation

Endian::static_assert ( sizeof(B16 = =2,
"must have size 2"   
)
Endian::static_assert ( sizeof(B32 = =4,
"must have size 4"   
)
Endian::static_assert ( ALIGNOF(B16)<=  2,
"may have alignment 2"   
)
Endian::static_assert ( ALIGNOF(B32)<=  4,
"may have alignment 4"   
)
Endian::static_assert ( sizeof(UA_B16 = =2,
"must have size 2"   
)
Endian::static_assert ( sizeof(UA_L16 = =2,
"must have size 2"   
)
Endian::static_assert ( sizeof(UA_B32 = =4,
"must have size 4"   
)
Endian::static_assert ( sizeof(UA_L32 = =4,
"must have size 4"   
)
Endian::static_assert ( ALIGNOF(UA_B16 = =1,
"must have alignment 1"   
)
Endian::static_assert ( ALIGNOF(UA_L16 = =1,
"must have alignment 1"   
)
Endian::static_assert ( ALIGNOF(UA_B32 = =1,
"must have alignment 1"   
)
Endian::static_assert ( ALIGNOF(UA_L32 = =1,
"must have alignment 1"   
)