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

Method check_bounds

nodedb-strict/src/decode.rs:354–363  ·  view source on GitHub ↗
(&self, col_idx: usize)

Source from the content-addressed store, hash-verified

352 // -- Internal helpers --
353
354 fn check_bounds(&self, col_idx: usize) -> Result<(), StrictError> {
355 if col_idx >= self.schema.columns.len() {
356 Err(StrictError::ColumnOutOfRange {
357 index: col_idx,
358 count: self.schema.columns.len(),
359 })
360 } else {
361 Ok(())
362 }
363 }
364
365 fn check_min_size(&self, tuple: &[u8]) -> Result<(), StrictError> {
366 let min = self.header_size;

Callers 5

is_nullMethod · 0.80
extract_fixed_rawMethod · 0.80
extract_variable_rawMethod · 0.80
extract_valueMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected