add remainingBytes, isEmpty

It would be useful for some kind of compatibility issue