pub fn enum_items(&self, bpos: u32) -> Option<EnumItemsResult> {
        let mut bpos_int = bpos as c_int;
        let raw_evt = unsafe { self.0.EnumItems(&mut bpos_int as *mut c_int) };
        if raw_evt.is_null() {
            // No MIDI events left
            return None;
        }
        let res = EnumItemsResult {
            midi_event: { unsafe { MidiEvent::ref_cast(&*raw_evt) } },
            next_bpos: bpos_int as _,
        };
        Some(res)
    }
/// Returns the MIDI event at the given byte index along with the byte index of the
/// next event.
Returns the MIDI event at the given byte index along with the byte index of the
next event.
Returns the MIDI event at the given byte index along with the byte index of the next event .
pub fn enum_items(&self, bpos: u32) -> Option<EnumItemsResult> {
        let mut bpos_int = bpos as c_int;
        let raw_evt = unsafe { self.0.EnumItems(&mut bpos_int as *mut c_int) };
        if raw_evt.is_null() {
            // No MIDI events left
            return None;
        }
        let res = EnumItemsResult {
            midi_event: { unsafe { MidiEvent::ref_cast(&*raw_evt) } },
            next_bpos: bpos_int as _,
        };
        Some(res)
    }
pub fn enum_items ( & self , bpos : u32 ) -> Option < EnumItemsResult > { let mut bpos_int = bpos as c_int ; let raw_evt = unsafe { self . 0 . EnumItems ( & mut bpos_int as * mut c_int ) } ; if raw_evt . is_null ( ) { // No MIDI events left return None ; } let res = EnumItemsResult { midi_event : { unsafe { MidiEvent :: ref_cast ( & * raw_evt ) } } , next_bpos : bpos_int as _ , } ; Some ( res ) }
Returns the MIDI event at the given byte index along with the byte index of the
next event.
Returns the MIDI event at the given byte index along with the byte index of the next event .
&self
bpos
u32
&self
bpos
u32