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

Method finish

arrow-buffer/src/builder/offset.rs:62–65  ·  view source on GitHub ↗

Takes the builder itself and returns an [`OffsetBuffer`] # Panics Panics if offsets overflow `O`

(self)

Source from the content-addressed store, hash-verified

60 ///
61 /// Panics if offsets overflow `O`
62 pub fn finish(self) -> OffsetBuffer<O> {
63 O::from_usize(self.last_offset).expect("overflow");
64 unsafe { OffsetBuffer::new_unchecked(self.offsets.into()) }
65 }
66
67 /// Builds the [OffsetBuffer] without resetting the builder.
68 ///

Callers 4

finish_clonedMethod · 0.45
test_basicFunction · 0.45
test_usize_overflowFunction · 0.45
test_i32_overflowFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_basicFunction · 0.36
test_usize_overflowFunction · 0.36
test_i32_overflowFunction · 0.36