pub fn split_messages(data: Vec<u8>) -> Vec<Vec<u8>>
Splits the vector by the terminator byte, including it.