Lines Matching refs:segments
211 fn from_segments(segments: &[&Segment<'_>]) -> Option<Version> { in from_segments()
213 if v.max_data() * 8 >= segments.iter().map(|s| s.total_size_bits(v)).sum() { in from_segments()
482 fn new<'a, 'b>(segments: &[&Segment<'b>], data: &'a mut [u8]) -> Option<EncodedMsg<'a>> { in new()
483 let version = Version::from_segments(segments)?; in new()
504 em.encode(segments); in new()
539 fn add_segments(&mut self, segments: &[&Segment<'_>]) { in add_segments()
542 for s in segments.iter() { in add_segments()
591 fn encode(&mut self, segments: &[&Segment<'_>]) { in encode()
592 self.add_segments(segments); in encode()
963 let segments = &[ in drm_panic_qr_generate() localVariable
967 match EncodedMsg::new(segments, tmp_slice) { in drm_panic_qr_generate()