Check whether column `col_idx` is null in the given tuple.
(&self, tuple: &[u8], col_idx: usize)
| 97 | |
| 98 | /// Check whether column `col_idx` is null in the given tuple. |
| 99 | pub fn is_null(&self, tuple: &[u8], col_idx: usize) -> Result<bool, StrictError> { |
| 100 | self.check_bounds(col_idx)?; |
| 101 | self.check_min_size(tuple)?; |
| 102 | |
| 103 | let bitmap_byte = tuple[9 + col_idx / 8]; |
| 104 | Ok(bitmap_byte & (1 << (col_idx % 8)) != 0) |
| 105 | } |
| 106 | |
| 107 | /// Extract raw bytes for a fixed-size column. Returns `None` if null. |
| 108 | /// |
no test coverage detected