MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / write_binary_file

Function write_binary_file

server/src/common/io_utils.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static inline bool write_binary_file(const std::string & path,
57 const void * data, size_t bytes) {
58 std::ofstream f(path, std::ios::binary);
59 if (!f) return false;
60 if (bytes > 0) f.write((const char *)data, (std::streamsize)bytes);
61 return (bool)f;
62}
63
64static inline bool read_binary_file_exact(const std::string & path,
65 void * data, size_t bytes) {

Callers 3

send_feature_sliceMethod · 0.85
proposeMethod · 0.85
set_feature_rangeMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected