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

Method check_bytes

src/pgcopy/src/copy.rs:231–235  ·  view source on GitHub ↗
(&self, bytes: &[u8])

Source from the content-addressed store, hash-verified

229 }
230
231 fn check_bytes(&self, bytes: &[u8]) -> bool {
232 self.data
233 .get(self.position..self.position + bytes.len())
234 .map_or(false, |d| d == bytes)
235 }
236
237 fn consume_bytes(&mut self, bytes: &[u8]) -> bool {
238 if self.check_bytes(bytes) {

Callers 3

is_end_of_copy_markerMethod · 0.80
is_column_delimiterMethod · 0.80
consume_bytesMethod · 0.80

Calls 2

getMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected