Searched refs:shortBlockLen (Results 1 – 4 of 4) sorted by relevance
/third_party/qrcodegen/c/ |
D | qrcodegen-test.c | 114 size_t shortBlockLen = rawCodewords / numBlocks; in addEccAndInterleaveReference() local 125 uint8_t *block = malloc((shortBlockLen + 1) * sizeof(uint8_t)); in addEccAndInterleaveReference() 130 size_t datLen = shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1); in addEccAndInterleaveReference() 132 …eRemainder(&data[k], (int)datLen, generator, (int)blockEccLen, &block[shortBlockLen + 1 - blockEcc… in addEccAndInterleaveReference() 144 for (size_t i = 0, k = 0; i < shortBlockLen + 1; i++) { in addEccAndInterleaveReference() 147 if (i != shortBlockLen - blockEccLen || j >= numShortBlocks) { in addEccAndInterleaveReference()
|
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/ |
D | QrCode.java | 438 int shortBlockLen = rawCodewords / numBlocks; in addEccAndInterleave() local 444 …byte[] dat = Arrays.copyOfRange(data, k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0… in addEccAndInterleave() 446 byte[] block = Arrays.copyOf(dat, shortBlockLen + 1); in addEccAndInterleave() 457 if (i != shortBlockLen - blockEccLen || j >= numShortBlocks) { in addEccAndInterleave()
|
/third_party/qrcodegen/typescript-javascript/ |
D | qrcodegen.ts | 373 const shortBlockLen: int = Math.floor(rawCodewords / numBlocks); constant 379 …let dat: Array<byte> = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1… 392 if (i != shortBlockLen - blockEccLen || j >= numShortBlocks)
|
/third_party/qrcodegen/cpp/ |
D | qrcodegen.cpp | 507 int shortBlockLen = rawCodewords / numBlocks; in addEccAndInterleave() local 513 …vector<uint8_t> dat(data.cbegin() + k, data.cbegin() + (k + shortBlockLen - blockEccLen + (i < num… in addEccAndInterleave() 527 …if (i != static_cast<unsigned int>(shortBlockLen - blockEccLen) || j >= static_cast<unsigned int>(… in addEccAndInterleave()
|