Searched refs:dataused (Results 1 – 2 of 2) sorted by relevance
221 let dataused: Option<usize> = QrSegment::get_total_bits(segs, version); in encode_segments_advanced() localVariable222 if dataused.map_or(false, |n| n <= datacapacitybits) { in encode_segments_advanced()223 break dataused.unwrap(); // This version number is found to be suitable in encode_segments_advanced()225 return Err(match dataused { in encode_segments_advanced()
261 let dataused: Option<usize> = QrSegment::get_total_bits(segs, version); in encode_segments_to_codewords() localVariable262 if dataused.map_or(false, |n| n <= datacapacitybits) { in encode_segments_to_codewords()263 break dataused.unwrap(); // This version number is found to be suitable in encode_segments_to_codewords()265 return Err(match dataused { in encode_segments_to_codewords()