6 size_t length = str.size();
8 buffer.insert(buffer.end(), str.begin(), str.end());
13 deserializeBasicType<size_t>(buffer, offset);
14 std::string str(buffer.begin() + offset,
15 buffer.begin() + offset + length);
21 std::vector<char> buffer;
30 auto duration =
timestamp.time_since_epoch().count();
45 size_t current_pos = offset;
48 entry.
usedSize = deserializeBasicType<size_t>(buffer, current_pos);
49 entry.
freeSize = deserializeBasicType<size_t>(buffer, current_pos);
51 entry.
rank = deserializeBasicType<int>(buffer, current_pos);
53 auto duration = deserializeBasicType<long long>(buffer, current_pos);
54 entry.
timestamp = std::chrono::time_point<std::chrono::high_resolution_clock>(
55 std::chrono::high_resolution_clock::duration(duration));
57 size_t mapSize = deserializeBasicType<size_t>(buffer, current_pos);
58 for (
size_t i = 0; i < mapSize; ++i) {
Implementations for FFT constructor/destructor and transforms.
void serializeString(std::vector< char > &buffer, const std::string &str)
std::string deserializeString(const std::vector< char > &buffer, size_t &offset)
void serializeBasicType(std::vector< char > &buffer, const T &value)
std::map< std::string, std::string > parameters
std::chrono::time_point< std::chrono::high_resolution_clock > timestamp
static LogEntry deserialize(const std::vector< char > &buffer, size_t offset=0)
std::vector< char > serialize() const