4#include <logicalaccess/lla_core_api.hpp>
16LLA_CORE_API uint32_t
lla_htonl(uint32_t in);
17LLA_CORE_API uint16_t
lla_htons(uint16_t in);
34 size_t elapsed()
const;
40 size_t elapsed_micro()
const;
43 using TimePoint = std::chrono::steady_clock::time_point;
77template <
typename BitSet>
81 "whose length is not modulo 8");
86 for (
size_t i = 0; i < len; ++i)
89 for (
int j = 0; j < 8; ++j)
91 b |= in[count] << (7 - j);
116 template <
typename BitSet>
117 static std::bitset<DoubleValue<GetBitSetSize<BitSet>::Length>::Value>
120 std::bitset<GetBitSetSize<BitSet>::Length * 2> out;
122 for (
size_t count = 0, read_count = 0; count < GetBitSetSize<BitSet>::Length * 2;
125 if ((in[read_count] && t == IEEE_802) || (!in[read_count] && t == G_E_THOMAS))
143LLA_CORE_API
int portable_setenv(
const char *name,
const char *value,
int overwrite);
144LLA_CORE_API std::string
base64_encode(
unsigned char const *,
unsigned int len);
TimePoint creation_
Definition: utils.hpp:45
std::chrono::steady_clock::time_point TimePoint
Definition: utils.hpp:43
Definition: utils.hpp:105
static std::bitset< DoubleValue< GetBitSetSize< BitSet >::Length >::Value > encode(const BitSet &in, Type t)
Definition: utils.hpp:118
Type
Definition: utils.hpp:108
@ G_E_THOMAS
Definition: utils.hpp:109
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
LLA_CORE_API std::string base64_encode(unsigned char const *, unsigned int len)
Definition: utils.cpp:180
LLA_CORE_API int portable_setenv(const char *name, const char *value, int overwrite)
Definition: utils.cpp:153
LLA_CORE_API std::string base64_decode(std::string const &s)
Definition: utils.cpp:228
LLA_CORE_API uint32_t lla_htonl(uint32_t in)
Definition: utils.cpp:10
ByteVector bitsetToVector(const BitSet &in)
Definition: utils.hpp:78
LLA_CORE_API uint16_t lla_htons(uint16_t in)
Definition: utils.cpp:15
Definition: urirecord.hpp:30
@ Value
Definition: utils.hpp:69