-
Notifications
You must be signed in to change notification settings - Fork 523
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
feat(binding/c): Add blocking_reader for C binding #3259
Conversation
To be more specific, we could have two functions to reach this approach
For the first function, you could refer to the WDYT? |
Negative. We should only have |
Hmm, so we setup the reader (buffer size, path, etc.) on the first function, and then do the read that follows the configuration? |
The input write buffer size should be passed in every I am concerned about the API semantics. We will not offer |
Hi @Xuanwo @Ji-Xinyou , should I improve this pull request, or should I open a new one? 🤔 |
Both LGTM, I think you can work on this PR directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM, cc @Ji-Xinyou would you like to take a review?
All other parts LGTM, except for the return value of reader read. I mean it is always good to have as much error information as possible 🤣 |
Hi, @jiaoew1991, #3250 is about to merge. Maybe you can work upon it directly? |
268dad2
to
4317cce
Compare
@Xuanwo Updated it, but most of the CI jobs are cancelled 😅 |
I closed and reopened this PR to rerun the CI. |
I found an issue that our naming for structs and functions is inconsistent. The word cc @Ji-Xinyou, how about removing all |
Sure, that could be the default case since blocking is the most common. When we add async in the future, we can add async keyword in the API. |
Cool, would you like to submit a PR after this one merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
issue: #3257