Skip to content

Commit

Permalink
Update arrow-buffer/src/builder/null.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jan 27, 2025
1 parent 2439103 commit e98d831
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arrow-buffer/src/builder/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ impl NullBufferBuilder {
}
}

/// Returns the capacity of the buffer
/// Returns the allocated capacity of the buffer, if any
///
/// Note: if no nulls have been added, no buffer has been materialized
/// and this function will return 0, regardless of the capacity passed to `Self::new`
#[inline]
pub fn capacity(&self) -> usize {
if let Some(ref buf) = self.bitmap_builder {
Expand Down

0 comments on commit e98d831

Please sign in to comment.