MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / WriteFileBytes

Function WriteFileBytes

src/platform/linux/schema_fetch.cpp:485–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483};
484
485static bool WriteFileBytes(const std::string& path, const uint8_t* data, size_t len) {
486 FILE* f = fopen(path.c_str(), "wb");
487 if (!f) return false;
488 size_t w = fwrite(data, 1, len, f);
489 fclose(f);
490 return w == len;
491}
492
493bool HandleInbound819(const uint8_t* data, uint32_t len) {
494 if (!data || len < 8) return false;

Callers 1

HandleInbound819Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected