GenericReader error set fixes

add error.EndOfStream to readEnum() and isBytes() so that users can
catch these errors.  this also prevents them from panicing with
'invalid error value' on EndOfStream.

test both methods.
8f48533691Travis Staloch committed on 10/27/2023, 9:50:33 AM· committed by Andrew Kelleyparent29b0589
2 files changedLine totals unavailable