1

Jelly, 13 12 bytes
Encode, 7 6 bytes
2Bṁx‘Ḅ
Try it online!
Decode, 6 bytes
ȯIBŒɠ’
Try it online!
Encodes positive integers in the run lengths of the binary representation. Since we may have zeros, we increment all numbers. For example, the list [0,1,4] is encoded as 10011111 in binary.
Numbers ...