|
PLearn 0.1
|
#include <stdlib.h>

Go to the source code of this file.
Namespaces | |
| namespace | PLearn |
< for swap | |
Defines | |
| #define | LITTLE_ENDIAN_ORDER 'L' |
| WELCOME TO: LITTLE-ENDIAN / BIG-ENDIAN HELL... | |
| #define | BIG_ENDIAN_ORDER 'B' |
Functions | |
| char | PLearn::byte_order () |
| void | PLearn::endianswap2 (void *ptr, int n) |
| swaps endians for n 2-byte elements (such as short) | |
| void | PLearn::endianswap4 (void *ptr, int n) |
| swaps endians for n 4-byte elements (such as int or float) | |
| void | PLearn::endianswap8 (void *ptr, int n) |
| swaps endians for n 8-byte elements (such as double) | |
| void | PLearn::endianswap (void *ptr, int nelems, int elemsize) |
| calls endianswap2, 4, or 8 depending on elemsize (an elemsize of 1 is also valid and does nothing) | |
| template<class T > | |
| void | PLearn::endianswap (T *ptr, int n=1) |
| #define BIG_ENDIAN_ORDER 'B' |
Definition at line 54 of file byte_order.h.
Referenced by PLearn::byte_order(), PLearn::IntVecFile::get(), PLearn::IntVecFile::getVersionAndSize(), PLearn::IntVecFile::put(), PLearn::TMat< pair< real, real > >::read(), PLearn::PStream::readBinaryNum(), and PLearn::readSequence().
| #define LITTLE_ENDIAN_ORDER 'L' |
WELCOME TO: LITTLE-ENDIAN / BIG-ENDIAN HELL...
***
Definition at line 53 of file byte_order.h.
Referenced by PLearn::byte_order(), PLearn::IntVecFile::getVersionAndSize(), PLearn::TMat< pair< real, real > >::read(), PLearn::PStream::readBinaryNum(), PLearn::readSequence(), PLearn::TMat< pair< real, real > >::write(), and PLearn::writeSequence().
1.7.4