lua.wetgenes.tasks_msgp.pack
If given aa udp data packet string, convert it to a table.
If given table, convert it to a udp data packet string. little endian
u16 idx // incrementing and wrapping idx of this packet
u16 ack // we acknowledge all the packets before this idx so please send this one next (or again maybe)
u8 bit // which bit this is, all bits should be joined before parsing
u8 bits // how many bits in total ( all bits will be in adjacent idxs )
u8 data[*] // The payload, if multiple bits then all payloads should be concatenated