EndianIndependentSerialization.h File Reference

Detailed Description

#include "DataTypes.h"
#include "core/debug/Debug.h"
#include "core/math/Uint.h"
#include <cmath>
#include <limits>
#include <vector>

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 

Functions

void walberla::uintToByteArray (uint_t value, std::vector< uint8_t > &array, const uint_t offset, const uint_t bytes)
 Stores the 'bytes' least significant bytes of 'value' in 'array' starting at 'array[offset]' (complementary operation/function: byteArrayToUint) More...
 
uint_t walberla::byteArrayToUint (const std::vector< uint8_t > &array, const uint_t offset, const uint_t bytes)
 Converts 'bytes' bytes stored in 'array' starting at 'array[offset]' into a value of type uint_t (complementary operation/function: uintToByteArray) More...
 
template<typename REAL_T >
uint_t walberla::realToByteArray (const REAL_T value, std::vector< uint8_t > &array, const uint_t offset)
 
template<typename REAL_T >
REAL_T walberla::byteArrayToReal (const std::vector< uint8_t > &array, const uint_t offset)
 
void walberla::boolVectorToByteArray (const std::vector< bool > &boolVec, std::vector< uint8_t > &array, const uint_t offset)
 
std::vector< bool > walberla::byteArrayToBoolVector (const std::vector< uint8_t > &array, const uint_t offset, const uint_t bytes)