refactor decode to UdpSlice