Home
last modified time | relevance | path

Searched refs:ccbits (Results 1 – 8 of 8) sorted by relevance

/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrSegment.java248 int ccbits = seg.mode.numCharCountBits(version); in getTotalBits() local
249 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
251 result += 4L + ccbits + seg.data.bitLength(); in getTotalBits()
300 private Mode(int mode, int... ccbits) { in Mode() argument
302 numBitsCharCount = ccbits; in Mode()
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrSegment.java266 int ccbits = seg.mode.numCharCountBits(version); in getTotalBits() local
267 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
269 result += 4L + ccbits + seg.bitLength; in getTotalBits()
321 private Mode(int mode, int... ccbits) { in Mode() argument
323 numBitsCharCount = ccbits; in Mode()
/third_party/qrcodegen/c/
Dqrcodegen.c996 int ccbits = numCharCountBits(segs[i].mode, version); in getTotalBits() local
997 assert(0 <= ccbits && ccbits <= 16); in getTotalBits()
998 if (numChars >= (1L << ccbits)) in getTotalBits()
1000 result += 4L + ccbits + bitLength; in getTotalBits()
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp182 int ccbits = seg.mode->numCharCountBits(version); in getTotalBits() local
183 if (seg.numChars >= (1L << ccbits)) in getTotalBits()
185 if (4 + ccbits > INT_MAX - result) in getTotalBits()
187 result += 4 + ccbits; in getTotalBits()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts876 const ccbits: int = seg.mode.numCharCountBits(version); constant
877 if (seg.numChars >= (1 << ccbits))
879 result += 4 + ccbits + seg.bitData.length;
/third_party/qrcodegen/python/
Dqrcodegen.py821 ccbits: int = seg.get_mode().num_char_count_bits(version)
822 if seg.get_num_chars() >= (1 << ccbits):
824 result += 4 + ccbits + len(seg._bitdata)
/third_party/qrcodegen/rust/src/
Dlib.rs1115 let ccbits: u8 = seg.mode.num_char_count_bits(version); in get_total_bits() localVariable
1117 if let Some(limit) = 1usize.checked_shl(ccbits.into()) { in get_total_bits()
1122 result = result.checked_add(4 + usize::from(ccbits))?; in get_total_bits()
/third_party/qrcodegen/rust-no-heap/src/
Dlib.rs1256 let ccbits: u8 = seg.mode.num_char_count_bits(version); in get_total_bits() localVariable
1258 if let Some(limit) = 1usize.checked_shl(ccbits.into()) { in get_total_bits()
1263 result = result.checked_add(4 + usize::from(ccbits))?; in get_total_bits()