openMSX
Classes | Typedefs | Functions
Endian Namespace Reference

Classes

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

Typedefs

using B16 = EndianT< uint16_t, ConvBig< openmsx::OPENMSX_BIGENDIAN > >
 
using L16 = EndianT< uint16_t, ConvLittle< openmsx::OPENMSX_BIGENDIAN > >
 
using B32 = EndianT< uint32_t, ConvBig< openmsx::OPENMSX_BIGENDIAN > >
 
using L32 = EndianT< uint32_t, ConvLittle< openmsx::OPENMSX_BIGENDIAN > >
 
using B64 = EndianT< uint64_t, ConvBig< openmsx::OPENMSX_BIGENDIAN > >
 
using L64 = EndianT< uint64_t, ConvLittle< openmsx::OPENMSX_BIGENDIAN > >
 

Functions

void writeB16 (void *p, uint16_t x)
 
void writeL16 (void *p, uint16_t x)
 
void writeB32 (void *p, uint32_t x)
 
void writeL32 (void *p, uint32_t x)
 
uint16_t readB16 (const void *p)
 
uint16_t readL16 (const void *p)
 
uint32_t readB32 (const void *p)
 
uint32_t readL32 (const void *p)
 
ALWAYS_INLINE void write_UA_B16 (void *p, uint16_t x)
 
ALWAYS_INLINE void write_UA_L16 (void *p, uint16_t x)
 
ALWAYS_INLINE void write_UA_L24 (void *p, uint32_t x)
 
ALWAYS_INLINE void write_UA_B32 (void *p, uint32_t x)
 
ALWAYS_INLINE void write_UA_L32 (void *p, uint32_t x)
 
ALWAYS_INLINE void write_UA_B64 (void *p, uint64_t x)
 
ALWAYS_INLINE void write_UA_L64 (void *p, uint64_t x)
 
ALWAYS_INLINE uint16_t read_UA_B16 (const void *p)
 
ALWAYS_INLINE uint16_t read_UA_L16 (const void *p)
 
ALWAYS_INLINE uint32_t read_UA_L24 (const void *p)
 
ALWAYS_INLINE uint32_t read_UA_B32 (const void *p)
 
ALWAYS_INLINE uint32_t read_UA_L32 (const void *p)
 
ALWAYS_INLINE uint64_t read_UA_B64 (const void *p)
 
ALWAYS_INLINE uint64_t read_UA_L64 (const void *p)
 

Typedef Documentation

◆ B16

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

Definition at line 111 of file endian.hh.

◆ B32

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

Definition at line 113 of file endian.hh.

◆ B64

using Endian::B64 = typedef EndianT<uint64_t, ConvBig <openmsx::OPENMSX_BIGENDIAN> >

Definition at line 115 of file endian.hh.

◆ L16

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

Definition at line 112 of file endian.hh.

◆ L32

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

Definition at line 114 of file endian.hh.

◆ L64

using Endian::L64 = typedef EndianT<uint64_t, ConvLittle<openmsx::OPENMSX_BIGENDIAN> >

Definition at line 116 of file endian.hh.

Function Documentation

◆ read_UA_B16()

ALWAYS_INLINE uint16_t Endian::read_UA_B16 ( const void *  p)

Definition at line 218 of file endian.hh.

Referenced by Endian::UA_B16::operator uint16_t(), and TEST_CASE().

◆ read_UA_B32()

ALWAYS_INLINE uint32_t Endian::read_UA_B32 ( const void *  p)

Definition at line 231 of file endian.hh.

Referenced by Endian::UA_B32::operator uint32_t(), and TEST_CASE().

◆ read_UA_B64()

ALWAYS_INLINE uint64_t Endian::read_UA_B64 ( const void *  p)

Definition at line 239 of file endian.hh.

◆ read_UA_L16()

ALWAYS_INLINE uint16_t Endian::read_UA_L16 ( const void *  p)

◆ read_UA_L24()

ALWAYS_INLINE uint32_t Endian::read_UA_L24 ( const void *  p)

Definition at line 226 of file endian.hh.

Referenced by Endian::UA_L24::operator uint32_t().

◆ read_UA_L32()

ALWAYS_INLINE uint32_t Endian::read_UA_L32 ( const void *  p)

Definition at line 235 of file endian.hh.

Referenced by Endian::UA_L32::operator uint32_t(), and TEST_CASE().

◆ read_UA_L64()

ALWAYS_INLINE uint64_t Endian::read_UA_L64 ( const void *  p)

Definition at line 243 of file endian.hh.

◆ readB16()

uint16_t Endian::readB16 ( const void *  p)
inline

Definition at line 149 of file endian.hh.

◆ readB32()

uint32_t Endian::readB32 ( const void *  p)
inline

Definition at line 157 of file endian.hh.

◆ readL16()

uint16_t Endian::readL16 ( const void *  p)
inline

Definition at line 153 of file endian.hh.

◆ readL32()

uint32_t Endian::readL32 ( const void *  p)
inline

Definition at line 161 of file endian.hh.

◆ write_UA_B16()

ALWAYS_INLINE void Endian::write_UA_B16 ( void *  p,
uint16_t  x 
)

Definition at line 178 of file endian.hh.

References openmsx::x.

Referenced by Endian::UA_B16::operator=(), and TEST_CASE().

◆ write_UA_B32()

ALWAYS_INLINE void Endian::write_UA_B32 ( void *  p,
uint32_t  x 
)

Definition at line 194 of file endian.hh.

References openmsx::x.

Referenced by Endian::UA_B32::operator=(), and TEST_CASE().

◆ write_UA_B64()

ALWAYS_INLINE void Endian::write_UA_B64 ( void *  p,
uint64_t  x 
)

Definition at line 202 of file endian.hh.

References openmsx::x.

◆ write_UA_L16()

ALWAYS_INLINE void Endian::write_UA_L16 ( void *  p,
uint16_t  x 
)

◆ write_UA_L24()

ALWAYS_INLINE void Endian::write_UA_L24 ( void *  p,
uint32_t  x 
)

Definition at line 186 of file endian.hh.

References openmsx::x.

Referenced by Endian::UA_L24::operator=().

◆ write_UA_L32()

ALWAYS_INLINE void Endian::write_UA_L32 ( void *  p,
uint32_t  x 
)

Definition at line 198 of file endian.hh.

References openmsx::x.

Referenced by Endian::UA_L32::operator=(), TEST_CASE(), and openmsx::AviWriter::~AviWriter().

◆ write_UA_L64()

ALWAYS_INLINE void Endian::write_UA_L64 ( void *  p,
uint64_t  x 
)

Definition at line 206 of file endian.hh.

References openmsx::x.

Referenced by openmsx::tiger().

◆ writeB16()

void Endian::writeB16 ( void *  p,
uint16_t  x 
)
inline

Definition at line 132 of file endian.hh.

References openmsx::x.

◆ writeB32()

void Endian::writeB32 ( void *  p,
uint32_t  x 
)
inline

Definition at line 140 of file endian.hh.

References openmsx::x.

◆ writeL16()

void Endian::writeL16 ( void *  p,
uint16_t  x 
)
inline

Definition at line 136 of file endian.hh.

References openmsx::x.

◆ writeL32()

void Endian::writeL32 ( void *  p,
uint32_t  x 
)
inline

Definition at line 144 of file endian.hh.

References openmsx::x.