Fix for the isEof function when _byteOffset is not 0

Otherwise it doesn't recognize and of the stream