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

Method set_len

arrow-buffer/src/buffer/mutable.rs:665–668  ·  view source on GitHub ↗
(&mut self, len: usize)

Source from the content-addressed store, hash-verified

663 /// Panics if `len` exceeds the buffer capacity.
664 #[inline]
665 pub unsafe fn set_len(&mut self, len: usize) {
666 assert!(len <= self.capacity());
667 self.len = len;
668 }
669
670 /// Invokes `f` with values `0..len` collecting the boolean results into a new `MutableBuffer`
671 ///

Callers 9

lexical_to_stringFunction · 0.80
collectMethod · 0.80
interleave_primitiveFunction · 0.80
take_bytesFunction · 0.80
read_implMethod · 0.80
readMethod · 0.80
partition_validity_scanFunction · 0.80
trusted_len_unzipFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected