func (fs *FileStream) IsEOF() bool {
	// a bytestream wraps the bytereader interface
	// the Len method returns the number of unread bytes
	// in the underlying stream.
	n, err := fs.f.Read(nil)
	if n == 0 || err == io.EOF {
		return true
	}
	return false
}
// 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 (fs *FileStream) IsEOF() bool {
	n, err := fs.f.Read(nil)
	if n == 0 || err == io.EOF {
		return true
	}
	return false
}
func ( fs * FileStream ) IsEOF ( ) bool { n , err := fs . f . Read ( nil ) if n == 0 || err == io . EOF { return true } return false }
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.