#46 Add IUnitChain.remaining for codec to know the number of bytes remaining in the chain