1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

core API: dispatch

This commit is contained in:
awiouy 2018-02-09 21:06:16 +01:00
parent d34068c5a7
commit 434b824c6e
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ impl MercuryManager {
}))
}
pub fn dispatch(&self, cmd: u8, mut data: Bytes) {
pub(crate) fn dispatch(&self, cmd: u8, mut data: Bytes) {
let seq_len = BigEndian::read_u16(data.split_to(2).as_ref()) as usize;
let seq = data.split_to(seq_len).as_ref().to_owned();