This commit is contained in:
		
							
								
								
									
										5
									
								
								support/3rd_party/include/utils/file.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								support/3rd_party/include/utils/file.hpp
									
									
									
									
										vendored
									
									
								
							| @@ -77,8 +77,9 @@ public: | |||||||
| #if defined(PROJECT_ENABLE_JSON) | #if defined(PROJECT_ENABLE_JSON) | ||||||
|   [[nodiscard]] auto write(const nlohmann::json &data, std::uint64_t offset, |   [[nodiscard]] auto write(const nlohmann::json &data, std::uint64_t offset, | ||||||
|                            std::size_t *total_written = nullptr) -> bool { |                            std::size_t *total_written = nullptr) -> bool { | ||||||
|     return write_(reinterpret_cast<const unsigned char *>(data.dump().c_str()), |     auto str_data = data.dump(); | ||||||
|                   offset, total_written); |     return write_(reinterpret_cast<const unsigned char *>(str_data.c_str()), | ||||||
|  |                   data.size(), offset, total_written); | ||||||
|   } |   } | ||||||
| #endif // defined(PROJECT_ENABLE_JSON) | #endif // defined(PROJECT_ENABLE_JSON) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user