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. |
Xuanwo
left a comment
There was a problem hiding this comment.
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? |
issue: #3257