(&self)
| 51 | } |
| 52 | |
| 53 | pub fn id(&self) -> Vec<u8> { |
| 54 | match self.netid_type() { |
| 55 | 0 | 1 => self.get_id(6), |
| 56 | 2 => self.get_id(9), |
| 57 | 3..=7 => self.get_id(21), |
| 58 | _ => vec![], |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | fn get_id(&self, bits: u8) -> Vec<u8> { |
| 63 | // convert netid to u32 |
no test coverage detected