Ji-Xinyou commented on code in PR #1892:
URL:
https://github.com/apache/incubator-opendal/pull/1892#discussion_r1161839127
##########
bindings/c/include/opendal.h:
##########
@@ -132,8 +134,7 @@ typedef const struct BlockingOperator *opendal_operator_ptr;
the reallocation of the Vector.
*/
typedef struct opendal_bytes {
- const uint8_t *data;
- uintptr_t len;
+ const struct Vec_u8 *v;
Review Comment:
If the only operation that user should do on the returned bytes is read (or
truncate), it would be enough and efficient.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]