You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "silver-ymz (via GitHub)" <gi...@apache.org> on 2023/09/04 05:34:13 UTC
[GitHub] [incubator-opendal] silver-ymz commented on a diff in pull request #3004: feat(bindings/cpp): expose reader
silver-ymz commented on code in PR #3004:
URL: https://github.com/apache/incubator-opendal/pull/3004#discussion_r1314453836
##########
bindings/cpp/src/lib.rs:
##########
@@ -65,10 +73,17 @@ mod ffi {
fn remove(self: &Operator, path: &str) -> Result<()>;
fn stat(self: &Operator, path: &str) -> Result<Metadata>;
fn list(self: &Operator, path: &str) -> Result<Vec<Entry>>;
+ fn reader(self: &Operator, path: &str) -> Result<Box<Reader>>;
+
+ fn fill_buf(self: &mut Reader) -> Result<&[u8]>;
Review Comment:
The exposed functions have already bound with corresponding c++ type. For example, the reader will call function by `reader.fill_buf()`, rather than `fill_buf(&reader)` like c. So I think using `reader_fill_buf` is unnecessary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org