![]() |
CppSerdes
1.0
A serialization/deserialization library designed with embedded systems in mind
|
Defines common bitcpy details as well as a info::version number, and bit_length function. More...
#include <stdint.h>
#include <cstddef>
#include <type_traits>
#include <utility>
#include "bitcpy_sized_pointer.h"
Go to the source code of this file.
Classes | |
struct | serdes::info |
CppSerdes library information. More... | |
Namespaces | |
serdes | |
CppSerdes library namespace. | |
Macros | |
#define | BITCPY_CONSTEXPR_SUPPORTED 0 |
if == 1 constexpr for bitcpy is supported | |
#define | CONSTEXPR_ABOVE_CPP11 |
resolves automatically to "constexpr" if C++14 or greater | |
#define | BITCPY_CONSTEXPR_NON_LITERAL_STORAGE_SUPPORTED 0 |
if == 1 constexpr for bitcpy functions using non-literal storage is supported | |
#define | CONSTEXPR_ABOVE_CPP11_AND_NON_LITERAL_STORAGE |
resolves automatically to "constexpr" if C++14 or greater | |
Functions | |
template<typename T > | |
constexpr T | serdes::bit_length (T &&x) noexcept |
Does nothing but annotate a passed value as a bit length, used for writting clearer code. More... | |
Defines common bitcpy details as well as a info::version number, and bit_length function.