updated build system
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2024-08-02 14:06:25 -05:00
parent d6b2c1d81e
commit 7c58d9c569

View File

@ -77,8 +77,9 @@ public:
#if defined(PROJECT_ENABLE_JSON)
[[nodiscard]] auto write(const nlohmann::json &data, std::uint64_t offset,
std::size_t *total_written = nullptr) -> bool {
return write_(reinterpret_cast<const unsigned char *>(data.dump().c_str()),
offset, total_written);
auto str_data = data.dump();
return write_(reinterpret_cast<const unsigned char *>(str_data.c_str()),
data.size(), offset, total_written);
}
#endif // defined(PROJECT_ENABLE_JSON)