alamb commented on code in PR #3529:
URL: https://github.com/apache/arrow-rs/pull/3529#discussion_r1070552254
##########
arrow-data/src/bitmap.rs:
##########
@@ -68,12 +68,23 @@ impl Bitmap {
self.bits
}
- /// Returns the total number of bytes of memory occupied by the buffers
owned by this [Bitmap].
+ /// Returns the total number of bytes of memory occupied by the
+ /// buffers owned by this [Bitmap].
+ ///
+ /// Note that this [`Bitmap`] may only refer to a subset of the
+ /// data in the underlying [`Buffer`], but the size includes the
+ /// entire size of the buffer.
Review Comment:
Yes that was the intent
```suggestion
/// Note that this [`Bitmap`] may only refer to a subset of the
/// data in the underlying [`Buffer`] (it is a slice) but the return
value includes the
/// entire size of the buffer.
```
--
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]