pub unsafe extern "C" fn libsais16(
T: *const u16,
SA: *mut i32,
n: i32,
fs: i32,
freq: *mut i32,
) -> i32Expand description
Constructs the suffix array of a given 16-bit string.
§Arguments
T- [0..n-1] The input 16-bit string.SA- [0..n-1+fs] The output array of suffixes.n- The length of the given 16-bit string.fs- The extra space available at the end of SA array (0 should be enough for most cases).freq- [0..65535] The output 16-bit symbol frequency table (can be NULL).
§Returns
0 if no error occurred, -1 or -2 otherwise.