LevelS C++ support library  3.83
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 Wed Nov 13 2024 12:18:16 for LevelS C++ support library