pub unsafe extern "C" fn libsais_int(
T: *mut i32,
SA: *mut i32,
n: i32,
k: i32,
fs: i32,
) -> i32Expand description
Constructs the suffix array of a given integer array.Note, during construction input array will be modified, but restored at the end if no errors occurred.
§Arguments
T- [0..n-1] The input integer array.SA- [0..n-1+fs] The output array of suffixes.n- The length of the integer array.k- The alphabet size of the input integer array.fs- Extra space available at the end of SA array (can be 0, but 4k or better 6k is recommended for optimal performance).
§Returns
0 if no error occurred, -1 or -2 otherwise.