pub struct ModHeader {
pub title: String,
pub samples: Vec<Sample>,
pub song_length: u8,
pub restart: u8,
pub order: Vec<u8>,
pub signature: [u8; 4],
pub channels: u8,
pub n_patterns: u8,
}Fields§
§title: String§samples: Vec<Sample>§song_length: u8§restart: u8§order: Vec<u8>§signature: [u8; 4]§channels: u8§n_patterns: u8Number of distinct patterns referenced by the order table.
Implementations§
Source§impl ModHeader
impl ModHeader
Sourcepub fn pattern_data_offset(&self) -> usize
pub fn pattern_data_offset(&self) -> usize
Total size of the header block preceding sample data (in bytes).
Sourcepub fn pattern_data_size(&self) -> usize
pub fn pattern_data_size(&self) -> usize
Size of the pattern data region in bytes.
Sourcepub fn sample_data_offset(&self) -> usize
pub fn sample_data_offset(&self) -> usize
Absolute offset where sample bodies begin.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModHeader
impl RefUnwindSafe for ModHeader
impl Send for ModHeader
impl Sync for ModHeader
impl Unpin for ModHeader
impl UnsafeUnpin for ModHeader
impl UnwindSafe for ModHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more