kingsword09 commented on PR #6312:
URL: https://github.com/apache/opendal/pull/6312#issuecomment-2985977543

   @Xuanwo  We need to clarify whether the “size” parameter should represent 
the number of bytes to read after the offset (length-based), or if it should 
specify the absolute end bound (end-based) for the read operation.
   
   I noticed that in the Python binding, “size” is actually used as the end 
bound, but the name “size” doesn’t seem to accurately reflect this usage.
   
https://github.com/apache/opendal/blob/06370cca1f79faea95c557f39f6b4912592c1153/bindings/python/tests/test_read.py#L80
   
   Currently, I am using “size” to indicate the number of bytes to read after 
the offset. Should I align this behavior with the Python binding, where “size” 
is used as the end bound?


-- 
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-unsubscr...@opendal.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to