![]() |
Disk ARchive 2.7.14
Full featured and portable backup and archiving tool
|
#include <limitint.hpp>
Static Public Member Functions | |
static bool | is_system_big_endian () |
static bool | is_system_big_endian () |
Private Types | |
enum | endian { big_endian , little_endian , not_initialized , big_endian , little_endian , not_initialized } |
enum | endian { big_endian , little_endian , not_initialized , big_endian , little_endian , not_initialized } |
using | group = unsigned char[TG] |
using | group = unsigned char[TG] |
Private Member Functions | |
void | build_from_file (proto_generic_file &x) |
template<class T > | |
void | limitint_from (T a) |
template<class T > | |
T | max_val_of (T x) |
template<class T > | |
void | limitint_unstack_to (T &a) |
void | build_from_file (proto_generic_file &x) |
template<class T > | |
void | limitint_from (T a) |
template<class T > | |
T | max_val_of (T x) |
template<class T > | |
void | limitint_unstack_to (T &a) |
Static Private Member Functions | |
static void | setup_endian () |
static void | setup_endian () |
Private Attributes | |
B | field |
Static Private Attributes | |
static const int | TG = 4 |
static const U_32 | sizeof_field = sizeof(B) |
static endian | used_endian = not_initialized |
static const U_I | bytesize = sizeof(B) |
static const B | max_value = ~B(0) > 0 ? ~B(0) : ~(B(1) << (bytesize*8 - 1)) |
static U_8 | zeroed_field [ZEROED_SIZE] |
limitint template class
the limitint template class implementation can handle positive integers and detect overflow. It shares with infinint the same interface, so it can be use in place of it, but throw Elimitint exceptions if overflow is detected. this template class receive as argument a positive integer atomic type In particular it is assumed that the sizeof() operator gives the amount of byte of information that this type can handle, and it is also assumed that the bytes of information are contiguous.
Definition at line 87 of file dar64-2.7.14-win64/include/dar/limitint.hpp.
|
inline |
Definition at line 104 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 170 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 171 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 169 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 159 of file src/libdar/limitint.hpp.
Definition at line 165 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 140 of file src/libdar/limitint.hpp.
Definition at line 136 of file src/libdar/limitint.hpp.
|
inline |
Definition at line 142 of file src/libdar/limitint.hpp.
Definition at line 138 of file src/libdar/limitint.hpp.
Definition at line 161 of file src/libdar/limitint.hpp.
Definition at line 164 of file src/libdar/limitint.hpp.
Definition at line 162 of file src/libdar/limitint.hpp.
Definition at line 163 of file src/libdar/limitint.hpp.
Definition at line 166 of file src/libdar/limitint.hpp.
Definition at line 452 of file dar64-2.7.14-win64/include/dar/limitint.hpp.
|
inline |
Definition at line 121 of file src/libdar/limitint.hpp.
Definition at line 150 of file src/libdar/limitint.hpp.