IMP logo

endian.h File Reference

functions to deal with endian of EM images More...

Include dependency graph for endian.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  IMP
 The IMP kernel provides base classes and key shared functionality.
namespace  IMP::algebra
 This module contains general purpose algebraic and geometric methods.

Functions

Endian
IMP provides a variety of functionality to manage byte order in input and output data.

bool IMP::algebra::get_is_big_endian ()
 Returns 1 if machine is big endian else 0.
bool IMP::algebra::get_is_little_endian ()
 Returns 1 if machine is little endian else 0.
template<class T >
void IMP::algebra::get_swapped_endian (T &x)
 Conversion between little and big endian. Goes both ways.
void IMP::algebra::reversed_read (void *dest, size_t size, size_t nitems, std::ifstream &f, bool reverse)
 Reads from file in normal or reverse order.
void IMP::algebra::reversed_write (const void *src, size_t size, size_t nitems, std::ofstream &f, bool reverse=false)
 Writes to a file in normal or reversed order.

Detailed Description

functions to deal with endian of EM images

Author:
Javier Velazquez-Muriel Copyright 2007-2010 IMP Inventors. All rights reserved.

Generated on Mon Mar 8 23:05:08 2010 for IMP by doxygen 1.5.8