#[unsafe(no_mangle)]pub extern "C" fn ragc_preprocess_raw_contig(
contig_ptr: *mut u8,
contig_len: usize,
contig_capacity: usize,
) -> usizeExpand description
Preprocess raw contig (in-place) by converting ASCII to numeric codes
Matches C++ AGC’s preprocess_raw_contig() behavior:
- Filters bytes >= 64 (letter characters)
- Converts using cnv_num lookup table
- Removes non-letter characters
- Returns new length after preprocessing
§Safety
- contig_ptr must point to a valid vector allocation of at least contig_capacity elements
- The caller must resize the vector to the returned length
- Caller maintains ownership of the allocation