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

Function write_u32

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

Little-endian I/O helpers.

Source from the content-addressed store, hash-verified

175
176// Little-endian I/O helpers.
177static void write_u32(FILE * f, uint32_t v) { std::fwrite(&v, 4, 1, f); }
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); }

Callers 2

write_fileMethod · 0.85
write_headerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected