ZL_Compressor_buildTokenizeGraph

Function ZL_Compressor_buildTokenizeGraph 

Source
pub unsafe extern "C" fn ZL_Compressor_buildTokenizeGraph(
    compressor: *mut ZL_Compressor,
    inputType: ZL_Type,
    sort: bool,
    alphabetGraph: ZL_GraphID,
    indicesGraph: ZL_GraphID,
) -> ZL_Result_ZL_GraphID
Expand description

Builds a tokenize graph for the given parameters & successors.

@note If sorting the alphabet is not beneficial avoid it, as the sort will slow down compression.

@param inputType The type of the input data. It can be either struct, numeric, or string. @param sort Whether or not to sort the alphabet. Struct types cannot be sorted. Numeric types are sorted in ascending order. String types are sorted in lexographical order. @param alphabetGraph The graph to pass the alphabet output to. It must accept an input of type @p inputType. @param indicesGraph The graph to pass the indices to. It must accept a numeric input.

@returns The tokenize graph, or an error.