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

Function write_u16

server/src/server/disk_prefix_cache.cpp:180–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178static void write_u64(FILE * f, uint64_t v) { std::fwrite(&v, 8, 1, f); }
179static void write_i64(FILE * f, int64_t v) { std::fwrite(&v, 8, 1, f); }
180static void write_u16(FILE * f, uint16_t v) { std::fwrite(&v, 2, 1, f); }
181
182static bool read_u32(FILE * f, uint32_t & out) { return std::fread(&out, 4, 1, f) == 1; }
183static bool read_u64(FILE * f, uint64_t & out) { return std::fread(&out, 8, 1, f) == 1; }

Callers 1

write_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected