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

Method truncate

arrow-buffer/src/builder/mod.rs:316–318  ·  view source on GitHub ↗
(&mut self, len: usize)

Source from the content-addressed store, hash-verified

314 /// ```
315 #[inline]
316 pub fn truncate(&mut self, len: usize) {
317 self.buffer.truncate(len * std::mem::size_of::<T>());
318 }
319
320 /// # Safety
321 /// This requires the iterator be a trusted length. This could instead require

Callers 15

encode_rowsMethod · 0.45
truncate_safetyFunction · 0.45
mainFunction · 0.45
decode_binary_view_innerFunction · 0.45
clearMethod · 0.45
filter_run_end_arrayFunction · 0.45
compressMethod · 0.45
decompressMethod · 0.45
fold_nMethod · 0.45
limitMethod · 0.45
readMethod · 0.45
readMethod · 0.45

Calls

no outgoing calls

Tested by 2

truncate_safetyFunction · 0.36
test_with_limitFunction · 0.36