summaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 0af03a6ef2bfefcf67c513e63578e23bad219d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate bchlib_sys as ffi;

pub fn init(m:i32, t:i32, poly: u32) {
    unsafe {
        let bch = ffi::init_bch(m, t, poly);
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        init();
    }
}