DataStream  1.8.8
DataStream : framework to save/load/serialize/deserialize data
DataStream< size_t, DataStreamMode::WRITE, bool > Struct Reference

Specialisation to get the size of a bool. More...

#include <data_stream_size.h>

Static Public Member Functions

static bool data_stream (size_t &ds, bool &data)
 Get the size of a type bool. More...
 
static bool data_stream (size_t &ds, bool *data, size_t nbElement)
 Get the size of a type bool. More...
 

Detailed Description

Specialisation to get the size of a bool.

Definition at line 81 of file data_stream_size.h.

Member Function Documentation

◆ data_stream() [1/2]

bool DataStream< size_t, DataStreamMode::WRITE, bool >::data_stream ( size_t &  ds,
bool &  data 
)
static

Get the size of a type bool.

Parameters
[out]ds: size of the type
data: data to be used
Returns
true on success, false otherwise

Definition at line 14 of file data_stream_size.cpp.

14  {
15  ds += sizeof(bool);
16  return true;
17 }

◆ data_stream() [2/2]

bool DataStream< size_t, DataStreamMode::WRITE, bool >::data_stream ( size_t &  ds,
bool *  data,
size_t  nbElement 
)
static

Get the size of a type bool.

Parameters
[out]ds: size of the type
data: data to be used
nbElement: number of element of the data
Returns
true on success, false otherwise

Definition at line 25 of file data_stream_size.cpp.

25  {
26  ds += sizeof(bool)*nbElement;
27  return true;
28 }

The documentation for this struct was generated from the following files: