iso9660_simple 0.2.5

ISO9660 reading library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use zerocopy::{FromBytes, Immutable, IntoBytes};

#[repr(C, packed(1))]
#[derive(Copy, Clone, Debug, Default, FromBytes, Immutable, IntoBytes)]
pub struct LSB_MSB<T> {
    lsb: T,
    msb: T,
}

impl<T: Copy> LSB_MSB<T> {
    pub fn get(&self) -> T {
        #[cfg(target_endian = "little")]
        return self.lsb;
        #[cfg(target_endian = "big")]
        return self.msb;
    }
}