llama_split_prefix method
@details Extract the path prefix from the split_path if and only if the split_no and split_count match. llama_split_prefix(split_prefix, 64, "/models/ggml-model-q4_0-00002-of-00004.gguf", 2, 4) => split_prefix = "/models/ggml-model-q4_0"
Implementation
int llama_split_prefix(
ffi.Pointer<ffi.Char> split_prefix,
int maxlen,
ffi.Pointer<ffi.Char> split_path,
int split_no,
int split_count,
) {
return _llama_split_prefix(
split_prefix,
maxlen,
split_path,
split_no,
split_count,
);
}