This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 1999b6434 docs(core/types): add some comments for Buffer (#6746)
1999b6434 is described below

commit 1999b64347c078ae546b388f633351bf8300375f
Author: meteorgan <[email protected]>
AuthorDate: Fri Oct 31 00:29:02 2025 +0800

    docs(core/types): add some comments for Buffer (#6746)
    
    doc(core/types): add some comments for Buffer
---
 core/src/types/buffer.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/types/buffer.rs b/core/src/types/buffer.rs
index 91d472af9..26c4110fa 100644
--- a/core/src/types/buffer.rs
+++ b/core/src/types/buffer.rs
@@ -120,6 +120,8 @@ pub struct Buffer(Inner);
 #[derive(Clone)]
 enum Inner {
     Contiguous(Bytes),
+    // the logic view of the buffer starts at `parts[idx][offset]` and spans 
`size` bytes
+    // across subsequent `parts`
     NonContiguous {
         parts: Arc<[Bytes]>,
         size: usize,

Reply via email to