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

Method pad

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

Source from the content-addressed store, hash-verified

1273 }
1274
1275 void pad(const size_t alignment) {
1276 while (written_bytes % alignment != 0) {
1277 const int8_t zero = 0;
1278 write(zero);
1279 }
1280 }
1281};
1282
1283// vector buffer based writer

Callers 2

_get_unpad_dataFunction · 0.45
gguf_write_outFunction · 0.45

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected