PLearn 0.1
Namespaces | Functions
byte_order.cc File Reference
#include "byte_order.h"
Include dependency graph for byte_order.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

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)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines