pub fn encode_remaining_vec_u8(vec: &[u8], buf: &mut Vec<u8>)
Encode remaining bytes - for Vec at end of packet