libsais_unbwt

Function libsais_unbwt 

Source
pub unsafe extern "C" fn libsais_unbwt(
    T: *const u8,
    U: *mut u8,
    A: *mut i32,
    n: i32,
    freq: *const i32,
    i: i32,
) -> i32
Expand description

Constructs the original string from a given burrows-wheeler transformed string (BWT) with primary index.

§Arguments

  • T - [0..n-1] The input string.
  • U - [0..n-1] The output string (can be T).
  • A - [0..n] The temporary array (NOTE, temporary array must be n + 1 size).
  • n - The length of the given string.
  • freq - [0..255] The input symbol frequency table (can be NULL).
  • i - The primary index.

§Returns

0 if no error occurred, -1 or -2 otherwise.