/// Dump decoded information on stdout.
Dump decoded information on stdout.
Dump decoded information on stdout .
pub unsafe fn dump_data(data: *const QuircData) {
    println!("    Version: {}", (*data).version);
    println!(
        "    ECC level: {}",
        i32::from((*b"MLHQ\0")[(*data).ecc_level as (usize)])
    );
    println!("    Mask: {}", (*data).mask);
    println!(
        "    Data type: {} ({})",
        (*data).data_type,
        data_type_str((*data).data_type)
    );
    println!("    Length: {}", (*data).payload_len);
    println!(
        "    Payload: {}",
        CStr::from_ptr((*data).payload.as_ptr() as *const c_char)
            .to_str()
            .unwrap()
    );
    if (*data).eci != 0 {
        println!("    ECI: {}", (*data).eci);
    }
}
pub unsafe fn dump_data ( data : * const QuircData ) { println ! ( " " ( data ) version ) ; println ! ( " " i32 from ( ( b" \0 " ) [ ( data ) ecc_level as ( usize ) ] ) ) ; println ! ( " " ( data ) mask ) ; println ! ( " " ( data ) data_type data_type_str ( ( data ) data_type ) ) ; println ! ( " " ( data ) payload_len ) ; println ! ( " " CStr from_ptr ( ( data ) payload as_ptr ( ) as const c_char ) to_str ( ) unwrap ( ) ) ; if ( * data ) . eci != 0 { println ! ( " " ( data ) eci ) ; } }
Dump decoded information on stdout.
Dump decoded information on stdout .
data
*const QuircData