39static_assert(
sizeof(
Int8) == 1,
"Size of Int8 must be 1");
40static_assert(
sizeof(
UInt8) == 1,
"Size of UInt8 must be 1");
41static_assert(
sizeof(
Int16) == 2,
"Size of Int16 must be 2");
42static_assert(
sizeof(
UInt16) == 2,
"Size of UInt16 must be 2");
43static_assert(
sizeof(
Int32) == 4,
"Size of Int32 must be 4");
44static_assert(
sizeof(
UInt32) == 4,
"Size of UInt32 must be 4");
45static_assert(
sizeof(
Int64) == 8,
"Size of Int64 must be 8");
46static_assert(
sizeof(
UInt64) == 8,
"Size of UInt64 must be 8");
51template <
typename Type, Type Constant>
58 constexpr operator Value() const noexcept
79template <
typename Type, Type Constant>
198template <
typename Type, Type Constant>
201 toStr(str, constant());
205template <
typename Type, Type Constant>
210 toStr(str, constant);
293bool fromStr(T& value,
const std::string& str,
typename std::enable_if<std::is_integral<T>::value>::type* =
nullptr) noexcept
295 return fromStr(value, str.c_str(), str.size());
#define ONIXS_CMEMDH_MESSAGING_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_MESSAGING_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_NODISCARD
bool fromStr(Int8 &, const Char *, size_t)
std::uint32_t UInt32
uInt32.
char Char
Character type alias.
std::uint16_t UInt16
uInt16.
std::uint64_t UInt64
uInt64.
void toStr(std::string &, Int8)
Serializes given integer into a string.
constexpr Value operator()() const noexcept
Returns value of the constant.
static constexpr Value value() noexcept
Returns value of the constant.
Type Value
Type of the constant.