The ReadUvarint implementation (and ReadVarint which depends on it) reads 
from a io.ByteReader until it encounters a leading 0 bit indicating the end 
of the last byte of a varint. If it encounters an io.EOF error at any 
point, that error is passed back to the caller. 


The issue is that the caller has no way to know if a partial read took 
place. Iā€™d argue that in that case ā€“ an io.EOF error on any read after the 
first ā€“ ReadUvarint should return an io.ErrUnexpectedEOF error.


Is this something worth filing a GitHub issue about? Thanks!


e

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to