MCPcopy Create free account
hub / github.com/apache/datafusion / append_byte_map

Method append_byte_map

datafusion/functions/src/strings.rs:506–511  ·  view source on GitHub ↗
(&mut self, src: &[u8], mut map: F)

Source from the content-addressed store, hash-verified

504 /// Panics if the cumulative byte length exceeds `O::MAX`.
505 #[inline]
506 pub unsafe fn append_byte_map<F: FnMut(u8) -> u8>(&mut self, src: &[u8], mut map: F) {
507 self.value_buffer.extend(src.iter().map(|&b| map(b)));
508 let next_offset =
509 O::from_usize(self.value_buffer.len()).expect("byte array offset overflow");
510 self.offsets_buffer.push(next_offset);
511 }
512
513 /// See [`BulkNullStringArrayBuilder::append_with`].
514 ///

Callers 2

apply_replaceFunction · 0.80

Calls 8

mapFunction · 0.85
ensure_long_capacityMethod · 0.80
make_long_viewMethod · 0.80
extendMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45