MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / write_u64_le

Function write_u64_le

src/framework/io/safetensors.cpp:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void write_u64_le(std::ostream & output, uint64_t value) {
195 unsigned char bytes[8];
196 for (int i = 0; i < 8; ++i) {
197 bytes[i] = static_cast<unsigned char>((value >> (i * 8)) & 0xffU);
198 }
199 output.write(reinterpret_cast<const char *>(bytes), sizeof(bytes));
200}
201
202std::string escape_json_string(const std::string & value) {
203 std::string out;

Callers 1

write_safetensors_fileFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected