PhoenixDataStream  1.0.0
Framework to save/load/serialize/deserialize data
Loading...
Searching...
No Matches
data_stream_size.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#include "data_stream_size.h"
8
9
11
16 ds += sizeof(bool);
17 return true;
18}
19
21
26bool DataStream<size_t, DataStreamMode::WRITE, bool>::data_stream(size_t & ds, bool * data, size_t nbElement){
27 ds += sizeof(bool)*nbElement;
28 return true;
29}
30
31
33
38 ds += data.size() + sizeof(size_t); //Number of char + sizeof(size_t) to store the number of char
39 return true;
40}
41
42
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.