(strings: &[&[u8]])
| 40 | #[doc(hidden)] |
| 41 | #[must_use] |
| 42 | pub const fn len(strings: &[&[u8]]) -> usize { |
| 43 | let mut i = 0; |
| 44 | let mut len = 0; |
| 45 | while i < strings.len() { |
| 46 | let mut pos = 0; |
| 47 | while let Some((_, new_pos)) = next_byte(strings[i], pos) { |
| 48 | len += 1; |
| 49 | pos = new_pos; |
| 50 | } |
| 51 | i += 1; |
| 52 | } |
| 53 | len |
| 54 | } |
| 55 | |
| 56 | /// Decode hex strings into a byte array of pre-computed length. |
| 57 | /// |