updated build system
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2024-08-02 14:09:57 -05:00
parent 4bdaeaa30d
commit 55caf049b1
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -145,9 +145,8 @@ auto file::truncate(std::size_t size) -> bool {
return not error_;
}
auto file::write_(const typename data_buffer::value_type *data,
std::size_t to_write, std::size_t offset,
std::size_t *total_written) -> bool {
auto file::write_(const unsigned char *data, std::size_t to_write,
std::size_t offset, std::size_t *total_written) -> bool {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};