updated build system
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				BlockStorage/repertory/pipeline/head There was a failure building this commit
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	BlockStorage/repertory/pipeline/head There was a failure building this commit
				
			This commit is contained in:
		
							
								
								
									
										4
									
								
								support/3rd_party/include/utils/file.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								support/3rd_party/include/utils/file.hpp
									
									
									
									
										vendored
									
									
								
							| @@ -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) | ||||
|  | ||||
|   | ||||
							
								
								
									
										5
									
								
								support/3rd_party/src/utils/file.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								support/3rd_party/src/utils/file.cpp
									
									
									
									
										vendored
									
									
								
							| @@ -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__), | ||||
|   }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user