Function rosc::decoder::decode_tcp_vec

source ·
pub fn decode_tcp_vec(msg: &[u8]) -> Result<(&[u8], Vec<OscPacket>), OscError>
Expand description

Takes a bytes slice from a TCP stream (or any stream-based protocol) and returns a vec of all OSC packets in the slice as well as a slice of the bytes remaining after the last packet.