MCPcopy Create free account
hub / github.com/apache/arrow-rs / extend_zeros

Method extend_zeros

arrow-buffer/src/buffer/mutable.rs:650–656  ·  view source on GitHub ↗
(&mut self, additional: usize)

Source from the content-addressed store, hash-verified

648 /// reserving a capacity that fails for the same reasons as [`MutableBuffer::reserve`].
649 #[inline]
650 pub fn extend_zeros(&mut self, additional: usize) {
651 let new_len = self
652 .len
653 .checked_add(additional)
654 .expect("buffer length overflow");
655 self.resize(new_len, 0);
656 }
657
658 /// # Safety
659 /// The caller must ensure that the buffer was properly initialized up to `len`.

Callers 6

advanceMethod · 0.80
append_n_zeroedMethod · 0.80
try_from_sparse_iterMethod · 0.80
extend_nullsFunction · 0.80
extend_nullsFunction · 0.80

Calls 2

checked_addMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected