pub(crate) fn read_version_string(data: &[u8], seek: &mut usize) -> crate::headers::Version {
    let mut v = crate::headers::Version {data: read_byte_size_string(data, seek, 30), number: (5,2,0), clipboard: false};
    //println!("Version {} {}", n, s);
    //get the version
    for x in VERSIONS {
        if v.data == x.2 {
            v.number = x.0;
            v.clipboard = x.1;
            break;
        }
    }
    //println!("########################## Version: {:?}", v);
    v
}
/// Read the file version. It is on the first 31 bytes (1st byte is the real length, the following 30 bytes contain the version string) of the file.
/// * `data` - array of bytes
/// * `seek` - cursor that will be incremented
/// * returns version
Read the file version. It is on the first 31 bytes (1st byte is the real length, the following 30 bytes contain the version string) of the file.
`data` - array of bytes
`seek` - cursor that will be incremented
returns version
Read the file version . It is on the first 31 bytes ( 1st byte is the real length the following 30 bytes contain the version string ) of the file . ` data ` - array of bytes ` seek ` - cursor that will be incremented returns version
pub(crate) fn read_version_string(data: &[u8], seek: &mut usize) -> crate::headers::Version {
    let mut v = crate::headers::Version {data: read_byte_size_string(data, seek, 30), number: (5,2,0), clipboard: false};
    //println!("Version {} {}", n, s);
    //get the version
    for x in VERSIONS {
        if v.data == x.2 {
            v.number = x.0;
            v.clipboard = x.1;
            break;
        }
    }
    //println!("########################## Version: {:?}", v);
    v
}
pub ( crate ) fn read_version_string ( data : & [ u8 ] , seek : & mut usize ) -> crate :: headers :: Version { let mut v = crate :: headers :: Version { data : read_byte_size_string ( data , seek , 30 ) , number : ( 5 , 2 , 0 ) , clipboard : false } ; //println!("Version {} {}", n, s); //get the version for x in VERSIONS { if v . data == x . 2 { v . number = x . 0 ; v . clipboard = x . 1 ; break ; } } //println!("########################## Version: {:?}", v); v }
Read the file version.
Read the file version .
data
&[u8]
seek
&mut usize
data
&[u8]
seek
&mut usize