IMP logo
IMP Reference Guide  develop.b99932598c,2021/06/14
The Integrative Modeling Platform
endian.h File Reference

Functions to deal with byte order. More...

#include <IMP/algebra/algebra_config.h>
#include <IMP/base_macros.h>
#include <iostream>
#include <fstream>
+ 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.


 Base functionality and abstract base classes for representation, scoring and sampling.
 General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP modules.


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

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. More...
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. More...
bool IMP::algebra::get_is_big_endian ()
 Returns 1 if machine is big endian else 0. More...
bool IMP::algebra::get_is_little_endian ()
 Returns 1 if machine is little endian else 0. More...

Detailed Description

Functions to deal with byte order.

Copyright 2007-2021 IMP Inventors. All rights reserved.

Definition in file endian.h.