fn read_beat_stroke(&self, data: &[u8], seek: &mut usize) -> BeatStroke {
        //println!("read_beat_stroke()");
        let mut bs = BeatStroke::default();
        let down = read_signed_byte(data, seek);
        let up = read_signed_byte(data, seek);
        if up > 0 {
            bs.direction = BeatStrokeDirection::Up;
            bs.value = self.stroke_value(up).to_u16().unwrap();
        }
        if down > 0 {
            bs.direction = BeatStrokeDirection::Down;
            bs.value = self.stroke_value(down).to_u16().unwrap();
        }
        if self.version.number >= (5,0,0) {bs.swap_direction();}
        bs
    }
/// Read beat stroke. Beat stroke consists of two `Bytes <byte>` which correspond to stroke up
/// and stroke down speed. See `BeatStrokeDirection` for value mapping.
Read beat stroke. Beat stroke consists of two `Bytes ` which correspond to stroke up
and stroke down speed. See `BeatStrokeDirection` for value mapping.
Read beat stroke . Beat stroke consists of two ` Bytes ` which correspond to stroke up and stroke down speed . See ` BeatStrokeDirection ` for value mapping .
fn read_beat_stroke(&self, data: &[u8], seek: &mut usize) -> BeatStroke {
        //println!("read_beat_stroke()");
        let mut bs = BeatStroke::default();
        let down = read_signed_byte(data, seek);
        let up = read_signed_byte(data, seek);
        if up > 0 {
            bs.direction = BeatStrokeDirection::Up;
            bs.value = self.stroke_value(up).to_u16().unwrap();
        }
        if down > 0 {
            bs.direction = BeatStrokeDirection::Down;
            bs.value = self.stroke_value(down).to_u16().unwrap();
        }
        if self.version.number >= (5,0,0) {bs.swap_direction();}
        bs
    }
fn read_beat_stroke ( & self , data : & [ u8 ] , seek : & mut usize ) -> BeatStroke { //println!("read_beat_stroke()"); let mut bs = BeatStroke :: default ( ) ; let down = read_signed_byte ( data , seek ) ; let up = read_signed_byte ( data , seek ) ; if up > 0 { bs . direction = BeatStrokeDirection :: Up ; bs . value = self . stroke_value ( up ) . to_u16 ( ) . unwrap ( ) ; } if down > 0 { bs . direction = BeatStrokeDirection :: Down ; bs . value = self . stroke_value ( down ) . to_u16 ( ) . unwrap ( ) ; } if self . version . number >= ( 5 , 0 , 0 ) { bs . swap_direction ( ) ; } bs }
Read beat stroke.
Read beat stroke .
&self
data
&[u8]
seek
&mut usize
&self
data
&[u8]
seek
&mut usize