35 std::ifstream is(path, std::ifstream::ate | std::ifstream::binary);
39 size_t size = is.tellg();
43 is.read(
reinterpret_cast<char*
>(buf.data()), size);
50 std::ofstream os(path, std::ifstream::binary);
54 os.write(
reinterpret_cast<char*
>(buf.data()), buf.size());
bool start() override
Starts the backend, eventually used in backends that need to start classes and other things e....
bool load(std::vector< uint8_t > &buf) override
Loads into the buffer the saved configuration from the storage/memory.
bool save(std::vector< uint8_t > &buf) override
Saves the data in the buf to the storage/memory.
This file includes all the types the logdecoder script will decode.