pub(crate) fn read_short(data: &[u8], seek: &mut usize ) -> i16 {
    if data.len() < *seek + 2 {panic!("End of file reached");}
    let n = i16::from_le_bytes([data[*seek], data[*seek+1]]);
    *seek += 2;
    n
}
/// Read a short and increase the cursor position by 2 (2 little-endian bytes)
/// * `data` - array of bytes
/// * `seek` - start position to read
/// * returns the short value
Read a short and increase the cursor position by 2 (2 little-endian bytes)
`data` - array of bytes
`seek` - start position to read
returns the short value
Read a short and increase the cursor position by 2 ( 2 little - endian bytes ) ` data ` - array of bytes ` seek ` - start position to read returns the short value
pub(crate) fn read_short(data: &[u8], seek: &mut usize ) -> i16 {
    if data.len() < *seek + 2 {panic!("End of file reached");}
    let n = i16::from_le_bytes([data[*seek], data[*seek+1]]);
    *seek += 2;
    n
}
pub ( crate ) fn read_short ( data : & [ u8 ] , seek : & mut usize ) -> i16 { if data . len ( ) < * seek + 2 { panic ! ( " " ) ; } let n = i16 :: from_le_bytes ( [ data [ * seek ] , data [ * seek + 1 ] ] ) ; * seek += 2 ; n }
Read a short and increase the cursor position by 2 (2 little-endian bytes)
 `data` - array of bytes
 `seek` - start position to read
 returns the short value
Read a short and increase the cursor position by 2 ( 2 little - endian bytes ) ` data ` - array of bytes ` seek ` - start position to read returns the short value
data
&[u8]
seek
&mut usize
data
&[u8]
seek
&mut usize