Function llg_matcher_compute_mask_into

pub unsafe extern "C" fn llg_matcher_compute_mask_into(
    matcher: &mut LlgMatcher,
    mask_dest: *mut u32,
    mask_byte_len: usize,
) -> i32
Expand description

Compute the set of allowed tokens for the current state. The result is written to mask_dest. mask_byte_len must be equal to llg_matcher_get_mask_byte_size(). Returns 0 on success and -1 on error.

ยงSafety

This function should only be called from C code.