LevelS C++ support library  3.82
Classes | Functions
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

◆ byteswap()

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 Jul 28 2022 17:32:06 for LevelS C++ support library