Fix for the isEof function when _byteOffset is not 0

Otherwise it doesn't recognize end of the stream