Home
last modified time | relevance | path

Searched refs:getTotalBits (Results 1 – 12 of 12) sorted by relevance

/third_party/qrcodegen/c/
Dqrcodegen-test.c61 int getTotalBits(const struct qrcodegen_Segment segs[], size_t len, int version);
997 assert(getTotalBits(NULL, 0, 1) == 0); in testGetTotalBits()
999 assert(getTotalBits(NULL, 0, 40) == 0); in testGetTotalBits()
1006 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 2) == 36); in testGetTotalBits()
1008 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 10) == 44); in testGetTotalBits()
1010 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 39) == 44); in testGetTotalBits()
1020 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 9) == 133); in testGetTotalBits()
1022 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 21) == 139); in testGetTotalBits()
1024 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 27) == 145); in testGetTotalBits()
1031 assert(getTotalBits(segs, ARRAY_LENGTH(segs), 1) == -1); in testGetTotalBits()
[all …]
Dqrcodegen.c85 testable int getTotalBits(const struct qrcodegen_Segment segs[], size_t len, int version);
214 dataUsedBits = getTotalBits(segs, len, version); in qrcodegen_encodeSegmentsAdvanced()
988 testable int getTotalBits(const struct qrcodegen_Segment segs[], size_t len, int version) { in getTotalBits() function
/third_party/qrcodegen/cpp/
Dqrcodegen.hpp207 public: static int getTotalBits(const std::vector<QrSegment> &segs, int version);
Dqrcodegen.cpp179 int QrSegment::getTotalBits(const vector<QrSegment> &segs, int version) { in getTotalBits() function in qrcodegen::QrSegment
268 dataUsedBits = QrSegment::getTotalBits(segs, version); in encodeSegments()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrSegment.java243 static int getTotalBits(List<QrSegment> segs, int version) { in getTotalBits() method in QrSegment
DQrSegmentAdvanced.java80 int dataUsedBits = QrSegment.getTotalBits(segs, version); in makeSegmentsOptimally()
DQrCode.java153 dataUsedBits = QrSegment.getTotalBits(segs, version); in encodeSegments()
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrSegment.java261 static int getTotalBits(List<QrSegment> segs, int version) { in getTotalBits() method in QrSegment
DQrSegmentAdvanced.java80 int dataUsedBits = QrSegment.getTotalBits(segs, version); in makeSegmentsOptimally()
DQrCode.java153 dataUsedBits = QrSegment.getTotalBits(segs, version); in encodeSegments()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen-input-demo.ts151 `data bits = ${qrcodegen.QrSegment.getTotalBits(segs, qr.version) as number}.`;
Dqrcodegen.ts101 const usedBits: number = QrSegment.getTotalBits(segs, version);
873 public static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number { method in qrcodegen.QrSegment