(&mut self)
| 95 | |
| 96 | #[inline(always)] |
| 97 | pub fn decode_string(&mut self) -> Option<String> { |
| 98 | let mut length = self.read_nbits(9)?; |
| 99 | if length == 0 { |
| 100 | return Some("".to_string()); |
| 101 | } |
| 102 | if length >= (1 << 9) { |
| 103 | length = (1 << 9) - 1 |
| 104 | } |
| 105 | Some(self.read_string(length.try_into().unwrap()).unwrap()) |
| 106 | } |
| 107 | #[inline(always)] |
| 108 | pub fn decode(&mut self, prop: &Prop) -> Option<PropData> { |
| 109 | match prop.p_type { |
no test coverage detected