isEmpty package:binary

Test whether all input has been consumed, i.e. there are no remaining undecoded bytes.