(&mut self, v: bool)
| 180 | /// Appends a boolean `v` into the buffer |
| 181 | #[inline] |
| 182 | pub fn append(&mut self, v: bool) { |
| 183 | self.advance(1); |
| 184 | if v { |
| 185 | unsafe { bit_util::set_bit_raw(self.buffer.as_mut_ptr(), self.len - 1) }; |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | /// Appends n `additional` bits of value `v` into the buffer |
| 190 | #[inline] |