MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / push

Method push

src/ore/src/bytes.rs:120–126  ·  view source on GitHub ↗
(&mut self, b: B)

Source from the content-addressed store, hash-verified

118 /// If the provided [`Bytes`] is empty, we skip appending it.
119 #[inline]
120 pub fn push<B: Into<Bytes>>(&mut self, b: B) {
121 let b: Bytes = b.into();
122 if !b.is_empty() {
123 self.len += b.len();
124 self.segments.push((b, PADDING_DEFAULT));
125 }
126 }
127
128 /// Consumes `self` returning a type that implements [`io::Read`] and [`io::Seek`].
129 ///

Callers 15

vite.config.tsFile · 0.45
registerQueryListenersFunction · 0.45
finalizeFunction · 0.45
printConcurrencySummaryFunction · 0.45
tab-stress.spec.tsFile · 0.45
measureStepFunction · 0.45
utils.test.tsFile · 0.45
updateFunction · 0.45
initExtensionsFunction · 0.45

Calls 2

is_emptyMethod · 0.45
lenMethod · 0.45

Tested by 15

measureStepFunction · 0.36
setMockHistoryFunction · 0.36
fetchDataFunction · 0.36
test_retry_successFunction · 0.36
test_retry_async_successFunction · 0.36
test_retry_fatalFunction · 0.36
test_retry_async_fatalFunction · 0.36