(&mut self, pos: usize)
| 418 | } |
| 419 | |
| 420 | pub fn set_null_at(&mut self, pos: usize) { |
| 421 | let bit_index = pos + BinaryRow::HEADER_SIZE_IN_BYTES as usize; |
| 422 | let byte_index = bit_index / 8; |
| 423 | let bit_offset = bit_index % 8; |
| 424 | self.data[byte_index] |= 1 << bit_offset; |
| 425 | let offset = self.field_offset(pos); |
| 426 | self.data[offset..offset + 8].fill(0); |
| 427 | } |
| 428 | |
| 429 | pub fn write_boolean(&mut self, pos: usize, value: bool) { |
| 430 | let offset = self.field_offset(pos); |
no test coverage detected