Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream.js这段代码 经常会出现 endIndex - startIndex <0的情况 然后报错 #26

Closed
bondzasd opened this issue Jul 7, 2020 · 3 comments

Comments

@bondzasd
Copy link

bondzasd commented Jul 7, 2020

stream.js这段代码 function slice(buffer, startIndex, endIndex) 这个函数里 经常会出现 (endIndex - startIndex)<0 的情况 然后报错StreamLoader.read 请问怎么解决 截图已经发您qq了

@xd11223
Copy link

xd11223 commented Jul 15, 2020

StreamLoader.prototype._getChunk的data.length < chunkSize發生的問題,加個判斷data.length > this.chunkSize就可以解決了。

@ErosZy
Copy link
Owner

ErosZy commented Jul 16, 2020

可以提供PR或者之后有空会进行修复。

@ErosZy ErosZy closed this as completed Jul 16, 2020
@ErosZy ErosZy reopened this Jul 17, 2020
@ErosZy
Copy link
Owner

ErosZy commented Jul 17, 2020

@bondzasd 已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants