MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / check_min_size

Method check_min_size

nodedb-strict/src/decode.rs:365–375  ·  view source on GitHub ↗
(&self, tuple: &[u8])

Source from the content-addressed store, hash-verified

363 }
364
365 fn check_min_size(&self, tuple: &[u8]) -> Result<(), StrictError> {
366 let min = self.header_size;
367 if tuple.len() < min {
368 Err(StrictError::TruncatedTuple {
369 expected: min,
370 got: tuple.len(),
371 })
372 } else {
373 Ok(())
374 }
375 }
376
377 fn is_null_unchecked(&self, tuple: &[u8], col_idx: usize) -> bool {
378 let bitmap_byte = tuple[9 + col_idx / 8];

Callers 3

is_nullMethod · 0.80
extract_fixed_rawMethod · 0.80
extract_variable_rawMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected