MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / write

Method write

subprojects/llama.cpp/ggml/src/gguf.cpp:1188–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186
1187 template <typename T>
1188 void write(const T & val) {
1189 for (size_t i = 0; i < sizeof(val); ++i) {
1190 write(reinterpret_cast<const int8_t *>(&val)[i]);
1191 }
1192 }
1193
1194 void write(const bool & val) {
1195 const int8_t val8 = val ? 1 : 0;

Callers

nothing calls this directly

Calls 7

stringClass · 0.85
get_neMethod · 0.80
get_keyMethod · 0.80
lengthMethod · 0.65
writeFunction · 0.50
dataMethod · 0.45
get_typeMethod · 0.45

Tested by

no test coverage detected