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

增加对不支持seeking的流的支持 #6

Closed
execute233 opened this issue Oct 4, 2023 · 4 comments
Closed

增加对不支持seeking的流的支持 #6

execute233 opened this issue Oct 4, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@execute233
Copy link
Contributor

对于Console.OpenStandardInput()返回的流,它是不支持seeking,而您的EncodeToStream(Stream, stream)/DecodeToStream(Stream, stream)对流的长度进行了判断,传入这种类型的流时,将会发生异常:System.NotSupportedException: Stream does not support seeking.
虽然使用buffer[]能够解决这个问题,但是这将增加使用该方法的项目的代码量,望您能在将来发布的新版本中增加不支持seeking的流的支持。

@lc6464 lc6464 added the enhancement New feature or request label Oct 12, 2023
@lc6464
Copy link
Owner

lc6464 commented Oct 12, 2023

Please test all XxcodeFromLongStreamToXxx and all XxcodeToXxx(Stream, ...) with seekable Stream and unseekable Stream in version 2.1.0-Preview.1, thank you.

@execute233
Copy link
Contributor Author

six.

@lc6464
Copy link
Owner

lc6464 commented Oct 12, 2023

Basically, do not six.

@execute233
Copy link
Contributor Author

thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants