fgumi 0.1.3

High-performance tools for UMI-tagged sequencing data: extraction, grouping, and consensus calling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::num::write_i32_le;

pub(super) fn write_template_length(dst: &mut Vec<u8>, template_length: i32) {
    write_i32_le(dst, template_length);
}

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

    #[test]
    fn test_write_template_length() {
        let mut buf = Vec::new();
        write_template_length(&mut buf, 8);
        assert_eq!(buf, [0x08, 0x00, 0x00, 0x00]);
    }
}