pub fn chunk(
        &self,
        max_chunk_size: u32,
        undo_is_optional: ChunkCacheHint,
    ) -> Result<Chunk, &'static str> {
        let chunk_content = unsafe {
            Reaper::get()
                .medium_reaper()
                .get_track_state_chunk(self.raw(), max_chunk_size, undo_is_optional)
                .map_err(|_| "Couldn't load track chunk")?
        };
        Ok(chunk_content.into())
    }
// Attention! If you pass undoIsOptional = true it's faster but it returns a chunk that contains
// weird FXID_NEXT (in front of FX tag) instead of FXID (behind FX tag). So FX chunk code
// should be double checked then.
Attention. If you pass undoIsOptional = true it's faster but it returns a chunk that contains
weird FXID_NEXT (in front of FX tag) instead of FXID (behind FX tag). So FX chunk code
should be double checked then.
Attention . If you pass undoIsOptional = true it ' s faster but it returns a chunk that contains weird FXID_NEXT ( in front of FX tag ) instead of FXID ( behind FX tag ) . So FX chunk code should be double checked then .
pub fn chunk(
        &self,
        max_chunk_size: u32,
        undo_is_optional: ChunkCacheHint,
    ) -> Result<Chunk, &'static str> {
        let chunk_content = unsafe {
            Reaper::get()
                .medium_reaper()
                .get_track_state_chunk(self.raw(), max_chunk_size, undo_is_optional)
                .map_err(|_| "Couldn't load track chunk")?
        };
        Ok(chunk_content.into())
    }
pub fn chunk ( & self , max_chunk_size : u32 , undo_is_optional : ChunkCacheHint , ) -> Result < Chunk , & ' static str > { let chunk_content = unsafe { Reaper :: get ( ) . medium_reaper ( ) . get_track_state_chunk ( self . raw ( ) , max_chunk_size , undo_is_optional ) . map_err ( | _ | " " ) ? } ; Ok ( chunk_content . into ( ) ) }
Attention!
Attention!
&self
max_chunk_size
u32
undo_is_optional
ChunkCacheHint
&self
max_chunk_size
u32
undo_is_optional
ChunkCacheHint