pub struct ApeFileInfo {Show 16 fields
pub descriptor: ApeDescriptor,
pub header: ApeHeader,
pub seek_table: Vec<u64>,
pub junk_header_bytes: u32,
pub wav_header_data: Vec<u8>,
pub total_blocks: i64,
pub block_align: u16,
pub bytes_per_sample: u16,
pub wav_data_bytes: i64,
pub length_ms: i64,
pub average_bitrate: i64,
pub decompressed_bitrate: i64,
pub seek_table_elements: i32,
pub ape_frame_data_bytes: u64,
pub terminating_data_bytes: u32,
pub file_bytes: u64,
}Expand description
All parsed and derived information about an APE file.
Fields§
§descriptor: ApeDescriptor§header: ApeHeader§seek_table: Vec<u64>§junk_header_bytes: u32§wav_header_data: Vec<u8>§total_blocks: i64§block_align: u16§bytes_per_sample: u16§wav_data_bytes: i64§length_ms: i64§average_bitrate: i64§decompressed_bitrate: i64§seek_table_elements: i32§ape_frame_data_bytes: u64§terminating_data_bytes: u32§file_bytes: u64Implementations§
Source§impl ApeFileInfo
impl ApeFileInfo
Sourcepub fn frame_block_count(&self, frame_idx: u32) -> u32
pub fn frame_block_count(&self, frame_idx: u32) -> u32
Returns the number of audio blocks in the given frame.
All frames except the last have blocks_per_frame blocks; the last
frame has final_frame_blocks.
Sourcepub fn frame_byte_count(&self, frame_idx: u32) -> u64
pub fn frame_byte_count(&self, frame_idx: u32) -> u64
Returns the compressed byte count for the given frame.
For non-final frames this is the difference between consecutive seek table entries. For the final frame it is the distance from its seek position to the end of the compressed data region.
Trait Implementations§
Source§impl Clone for ApeFileInfo
impl Clone for ApeFileInfo
Source§fn clone(&self) -> ApeFileInfo
fn clone(&self) -> ApeFileInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ApeFileInfo
impl RefUnwindSafe for ApeFileInfo
impl Send for ApeFileInfo
impl Sync for ApeFileInfo
impl Unpin for ApeFileInfo
impl UnsafeUnpin for ApeFileInfo
impl UnwindSafe for ApeFileInfo
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