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

Specialisation to get the size of a long unsigned int. More...

#include <data_stream_size.h>

Static Public Member Functions

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

Detailed Description

Specialisation to get the size of a long unsigned int.

Definition at line 137 of file data_stream_size.h.

Member Function Documentation

◆ data_stream() [1/2]

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

Get the size of a type long unsigned int.

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

Definition at line 182 of file data_stream_size.cpp.

182  {
183  ds += sizeof(long unsigned int);
184  return true;
185 }

◆ data_stream() [2/2]

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

Get the size of a type long unsigned int.

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 193 of file data_stream_size.cpp.

193  {
194  ds += sizeof(long unsigned int)*nbElement;
195  return true;
196 }

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