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

Method push_length

arrow-buffer/src/builder/offset.rs:46–49  ·  view source on GitHub ↗
(&mut self, length: usize)

Source from the content-addressed store, hash-verified

44 /// Panics if adding `length` would overflow `usize`
45 #[inline]
46 pub fn push_length(&mut self, length: usize) {
47 self.last_offset = self.last_offset.checked_add(length).expect("overflow");
48 self.offsets.push(O::usize_as(self.last_offset))
49 }
50
51 /// Reserve space for at least `additional` further offsets
52 #[inline]

Callers 9

append_nullMethod · 0.80
append_defaultMethod · 0.80
decodeMethod · 0.80
decode_with_promotionMethod · 0.80
criterion_benchmarkFunction · 0.80
test_basicFunction · 0.80
test_usize_overflowFunction · 0.80
test_i32_overflowFunction · 0.80

Calls 2

checked_addMethod · 0.45
pushMethod · 0.45

Tested by 3

test_basicFunction · 0.64
test_usize_overflowFunction · 0.64
test_i32_overflowFunction · 0.64