bstream.h File Reference

#include <iostream>
#include <fstream>
#include <algorithm>
#include "datatypes.h"

Go to the source code of this file.

Classes

class  EndianTest__
class  bostream
class  bistream

Functions

template<typename T>
void byteswap (T &val)


Detailed Description

Classes for binary I/O with streams

Copyright (C) 2010 Max-Planck-Society

Author:
Martin Reinecke

Definition in file bstream.h.


Function Documentation

template<typename T>
void byteswap ( T &  val  )  [inline]

Performs an endianness conversion on val.

Note:
T must be a primitive data type!

Definition at line 81 of file bstream.h.


Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library