llama_split_prefix method

int llama_split_prefix(
  1. Pointer<Char> split_prefix,
  2. int maxlen,
  3. Pointer<Char> split_path,
  4. int split_no,
  5. int split_count,
)

@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,
  );
}