pub(crate) fn read_directions(&self, data: &[u8], seek: &mut usize) -> (HashMap<DirectionSign, i16>, HashMap<DirectionSign, i16>) {
        let mut signs: HashMap<DirectionSign, i16> = HashMap::with_capacity(4);
        let mut from_signs: HashMap<DirectionSign, i16> = HashMap::with_capacity(15);
        //signs
        signs.insert(DirectionSign::Coda, read_short(data, seek));
        signs.insert(DirectionSign::DoubleCoda, read_short(data, seek));
        signs.insert(DirectionSign::Segno, read_short(data, seek));
        signs.insert(DirectionSign::SegnoSegno, read_short(data, seek));
        signs.insert(DirectionSign::Fine, read_short(data, seek));
        //from signs
        from_signs.insert(DirectionSign::DaCapo, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegno, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegno, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaDoubleCoda, read_short(data, seek));
        (signs, from_signs)
    }
/// Read directions.  Directions is a list of 19 `ShortInts <short>` each pointing at the number of measure.
/// 
/// Directions are read in the following order:
/// - Coda
/// - Double Coda
/// - Segno
/// - Segno Segno
/// - Fine
/// - Da Capo
/// - Da Capo al Coda
/// - Da Capo al Double Coda
/// - Da Capo al Fine
/// - Da Segno
/// - Da Segno al Coda
/// - Da Segno al Double Coda
/// - Da Segno al Fine
/// - Da Segno Segno
/// - Da Segno Segno al Coda
/// - Da Segno Segno al Double Coda
/// - Da Segno Segno al Fine
/// - Da Coda
/// - Da Double Coda
Read directions.  Directions is a list of 19 `ShortInts ` each pointing at the number of measure.
Directions are read in the following order:
Coda
Double Coda
Segno
Segno Segno
Fine
Da Capo
Da Capo al Coda
Da Capo al Double Coda
Da Capo al Fine
Da Segno
Da Segno al Coda
Da Segno al Double Coda
Da Segno al Fine
Da Segno Segno
Da Segno Segno al Coda
Da Segno Segno al Double Coda
Da Segno Segno al Fine
Da Coda
Da Double Coda
Read directions . Directions is a list of 19 ` ShortInts ` each pointing at the number of measure . Directions are read in the following order : Coda Double Coda Segno Segno Segno Fine Da Capo Da Capo al Coda Da Capo al Double Coda Da Capo al Fine Da Segno Da Segno al Coda Da Segno al Double Coda Da Segno al Fine Da Segno Segno Da Segno Segno al Coda Da Segno Segno al Double Coda Da Segno Segno al Fine Da Coda Da Double Coda
pub(crate) fn read_directions(&self, data: &[u8], seek: &mut usize) -> (HashMap<DirectionSign, i16>, HashMap<DirectionSign, i16>) {
        let mut signs: HashMap<DirectionSign, i16> = HashMap::with_capacity(4);
        let mut from_signs: HashMap<DirectionSign, i16> = HashMap::with_capacity(15);
        //signs
        signs.insert(DirectionSign::Coda, read_short(data, seek));
        signs.insert(DirectionSign::DoubleCoda, read_short(data, seek));
        signs.insert(DirectionSign::Segno, read_short(data, seek));
        signs.insert(DirectionSign::SegnoSegno, read_short(data, seek));
        signs.insert(DirectionSign::Fine, read_short(data, seek));
        //from signs
        from_signs.insert(DirectionSign::DaCapo, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCapoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegno, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegno, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlDoubleCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaSegnoSegnoAlFine, read_short(data, seek));
        from_signs.insert(DirectionSign::DaCoda, read_short(data, seek));
        from_signs.insert(DirectionSign::DaDoubleCoda, read_short(data, seek));
        (signs, from_signs)
    }
pub ( crate ) fn read_directions ( & self , data : & [ u8 ] , seek : & mut usize ) -> ( HashMap < DirectionSign , i16 > , HashMap < DirectionSign , i16 > ) { let mut signs : HashMap < DirectionSign , i16 > = HashMap :: with_capacity ( 4 ) ; let mut from_signs : HashMap < DirectionSign , i16 > = HashMap :: with_capacity ( 15 ) ; //signs signs . insert ( DirectionSign :: Coda , read_short ( data , seek ) ) ; signs . insert ( DirectionSign :: DoubleCoda , read_short ( data , seek ) ) ; signs . insert ( DirectionSign :: Segno , read_short ( data , seek ) ) ; signs . insert ( DirectionSign :: SegnoSegno , read_short ( data , seek ) ) ; signs . insert ( DirectionSign :: Fine , read_short ( data , seek ) ) ; //from signs from_signs . insert ( DirectionSign :: DaCapo , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaCapoAlCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaCapoAlDoubleCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaCapoAlFine , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegno , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoAlCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoAlDoubleCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoAlFine , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoSegno , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoSegnoAlCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoSegnoAlDoubleCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaSegnoSegnoAlFine , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaCoda , read_short ( data , seek ) ) ; from_signs . insert ( DirectionSign :: DaDoubleCoda , read_short ( data , seek ) ) ; ( signs , from_signs ) }
Read directions.
Read directions .
&self
data
&[u8]
seek
&mut usize
&self
data
&[u8]
seek
&mut usize