pub fn new_reduced(
        pattern_len: usize,
        text_len: usize,
        penalties: &mut AffinePenalties,
        min_wavefront_len: i32,
        min_dist_threshold: i32,
        alloc: &'a MMAllocator,
    ) -> Self {
        assert!(pattern_len > 0 && text_len > 0);
        let stats_ptr = std::ptr::null_mut() as *mut wavefronts_stats_t;
        let ptr = unsafe {
            affine_wavefronts_new_reduced(
                pattern_len as c_int,
                text_len as c_int,
                penalties.as_ptr(),
                min_wavefront_len as c_int,
                min_dist_threshold as c_int,
                stats_ptr,
                alloc.alloc_ptr(),
            )
        };

        Self {
            ptr,
            allocator: alloc,
            pattern_len,
            text_len,
        }
    }
/// Construct a new set of reduced wavefronts
Construct a new set of reduced wavefronts
Construct a new set of reduced wavefronts
pub fn new_reduced(
        pattern_len: usize,
        text_len: usize,
        penalties: &mut AffinePenalties,
        min_wavefront_len: i32,
        min_dist_threshold: i32,
        alloc: &'a MMAllocator,
    ) -> Self {
        assert!(pattern_len > 0 && text_len > 0);
        let stats_ptr = std::ptr::null_mut() as *mut wavefronts_stats_t;
        let ptr = unsafe {
            affine_wavefronts_new_reduced(
                pattern_len as c_int,
                text_len as c_int,
                penalties.as_ptr(),
                min_wavefront_len as c_int,
                min_dist_threshold as c_int,
                stats_ptr,
                alloc.alloc_ptr(),
            )
        };
        Self {
            ptr,
            allocator: alloc,
            pattern_len,
            text_len,
        }
    }
pub fn new_reduced ( pattern_len : usize , text_len : usize , penalties : & mut AffinePenalties , min_wavefront_len : i32 , min_dist_threshold : i32 , alloc : & ' a MMAllocator , ) -> Self { assert ! ( pattern_len 0 text_len 0 ) ; let stats_ptr = std :: ptr :: null_mut ( ) as * mut wavefronts_stats_t ; let ptr = unsafe { affine_wavefronts_new_reduced ( pattern_len as c_int , text_len as c_int , penalties . as_ptr ( ) , min_wavefront_len as c_int , min_dist_threshold as c_int , stats_ptr , alloc . alloc_ptr ( ) , ) } ; Self { ptr , allocator : alloc , pattern_len , text_len , } }
Construct a new set of reduced wavefronts
Construct a new set of reduced wavefronts
pattern_len
usize
text_len
usize
penalties
&mut AffinePenalties
min_wavefront_len
i32
min_dist_threshold
i32
alloc
&'a MMAllocator