Static Public Member Functions
Aseba::ByteSwapper Struct Reference

ByteSwapper, code inspired by DPS (http://dps.epfl.ch/), released in GPL. More...

#include <endian.h>

List of all members.

Static Public Member Functions

template<typename T >
static void swap (T &v)
template<typename T >
static T swap (const T &v)
template<size_t size>
static void swapp (void *data)
 Swap bytes for 8-bit word, do nothing.

Detailed Description

ByteSwapper, code inspired by DPS (http://dps.epfl.ch/), released in GPL.

Mail to ask for LPGL relicensing sent to the author, Sebastian Gerlach

Definition at line 31 of file endian.h.


Member Function Documentation

template<typename T >
static void Aseba::ByteSwapper::swap ( T &  v) [inline, static]

Swap value v (generic, mutable-value version)

Parameters:
datareference to value to swap

Definition at line 48 of file endian.h.

template<typename T >
static T Aseba::ByteSwapper::swap ( const T &  v) [inline, static]

Swap value v (generic, const-value version)

Parameters:
dataconst reference to value to swap
Returns:
swapped value

Definition at line 58 of file endian.h.


The documentation for this struct was generated from the following file:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39