func (bs *ByteStream) IsEOF() bool {
	// a bytestream wraps the bytereader interface
	// the Len method returns the number of unread bytes
	// in the underlying stream.
	return bs.r.Len() == 0
}
// IsEOF checks if we reached the end of the bytestream.
IsEOF checks if we reached the end of the bytestream.
// IsEOF checks if we reached the end of the bytestream .
func (bs *ByteStream) IsEOF() bool {
	return bs.r.Len() == 0
}
func ( bs * ByteStream ) IsEOF ( ) bool { return bs . r . Len ( ) == 0 }
IsEOF checks if we reached the end of the bytestream.
IsEOF checks if we reached the end of the bytestream .
// a bytestream wraps the bytereader interface // the Len method returns the number of unread bytes // in the underlying stream.