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

无法正确显示解压进度 #82

Open
1006079161 opened this issue Aug 21, 2021 · 1 comment
Open

无法正确显示解压进度 #82

1006079161 opened this issue Aug 21, 2021 · 1 comment

Comments

@1006079161
Copy link

1006079161 commented Aug 21, 2021

解压无法正确显示解压进度,根本原因在于下面的代码无法正确获取长度

len = toDouble(this$static.d.length_0);
///NOTE: If the data was created via a stream, it will not have a length value, and therefore we can't calculate the progress.
虽然您的注释已经说明了该问题,真的没有办法解决?

@corwin-of-amber
Copy link

Well, is your data read as a stream or not? If the lzma header contains a valid length, then the length_0 field will be it. Otherwise, there is no way for LZMA-JS to know how much of it is left.

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

2 participants