/// Bindings for `sortkit.h`, generated by `louise bindgen` with their C shim: /// do not edit, regenerate. /// /// Not bound, or worth knowing: /// - line 30, `sk_vec_free`: the finalizer of `SkVec`, not bound. /// - line 49, `struct sk_stats`: a struct with fields. /// - line 53, `sk_vec_stats`: `sk_stats`: only pointers to opaque structs are supported. /// - line 54, `sk_sort_raw`: the callback `int (*)(const void *, const void *)` needs exactly one `void *` parameter, its environment. import std/ffi.{type Resource} /// `struct sk_vec`, opaque. pub type SkVec /// C: `sk_vec *sk_vec_new(void)` @extern c "louise_sk_vec_new" pub fn sk_vec_new :: -> Resource / /// C: `size_t sk_vec_len(const sk_vec *v)` @extern c "louise_sk_vec_len" pub fn sk_vec_len :: v: Resource -> Int / /// C: `bool sk_vec_push(sk_vec *v, int64_t x)` @extern c "louise_sk_vec_push" pub fn sk_vec_push :: v: Resource x: Int -> Bool / /// C: `int64_t sk_vec_get(const sk_vec *v, size_t i)` @extern c "louise_sk_vec_get" pub fn sk_vec_get :: v: Resource i: Int -> Int / /// C: `size_t sk_vec_sort(sk_vec *v, sk_compare cmp, void *env)` @extern c "louise_sk_vec_sort" pub fn sk_vec_sort :: v: Resource cmp: fn(Int, Int) -> Int / -> Int / /// C: `size_t sk_count_byte(const char *s, size_t len, int c)` @extern c "louise_sk_count_byte" pub fn sk_count_byte :: s: String c: Int -> Int / /// C: `const char *sk_version(void)` @extern c "louise_sk_version" pub fn sk_version :: -> String /