Searched refs:assignVal (Results 1 – 7 of 7) sorted by relevance
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/ |
D | QrSegment.java | 147 public static QrSegment makeEci(int assignVal) { in makeEci() argument 149 if (assignVal < 0) in makeEci() 151 else if (assignVal < (1 << 7)) in makeEci() 152 bb.appendBits(assignVal, 8); in makeEci() 153 else if (assignVal < (1 << 14)) { in makeEci() 155 bb.appendBits(assignVal, 14); in makeEci() 156 } else if (assignVal < 1_000_000) { in makeEci() 158 bb.appendBits(assignVal, 21); in makeEci()
|
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/ |
D | QrSegment.java | 162 public static QrSegment makeEci(int assignVal) { in makeEci() argument 164 if (assignVal < 0) in makeEci() 166 else if (assignVal < (1 << 7)) in makeEci() 167 bb.appendBits(assignVal, 8); in makeEci() 168 else if (assignVal < (1 << 14)) { in makeEci() 170 bb.appendBits(assignVal, 14); in makeEci() 171 } else if (assignVal < 1_000_000) { in makeEci() 173 bb.appendBits(assignVal, 21); in makeEci()
|
/third_party/qrcodegen/typescript-javascript/ |
D | qrcodegen.ts | 807 public static makeEci(assignVal: int): QrSegment { 809 if (assignVal < 0) 811 else if (assignVal < (1 << 7)) 812 appendBits(assignVal, 8, bb); 813 else if (assignVal < (1 << 14)) { 815 appendBits(assignVal, 14, bb); 816 } else if (assignVal < 1000000) { 818 appendBits(assignVal, 21, bb);
|
/third_party/qrcodegen/cpp/ |
D | qrcodegen.cpp | 143 QrSegment QrSegment::makeEci(long assignVal) { in makeEci() argument 145 if (assignVal < 0) in makeEci() 147 else if (assignVal < (1 << 7)) in makeEci() 148 bb.appendBits(static_cast<uint32_t>(assignVal), 8); in makeEci() 149 else if (assignVal < (1 << 14)) { in makeEci() 151 bb.appendBits(static_cast<uint32_t>(assignVal), 14); in makeEci() 152 } else if (assignVal < 1000000L) { in makeEci() 154 bb.appendBits(static_cast<uint32_t>(assignVal), 21); in makeEci()
|
D | qrcodegen.hpp | 130 public: static QrSegment makeEci(long assignVal);
|
/third_party/qrcodegen/c/ |
D | qrcodegen.c | 959 struct qrcodegen_Segment qrcodegen_makeEci(long assignVal, uint8_t buf[]) { in qrcodegen_makeEci() argument 964 if (assignVal < 0) in qrcodegen_makeEci() 966 else if (assignVal < (1 << 7)) { in qrcodegen_makeEci() 968 appendBitsToBuffer((unsigned int)assignVal, 8, buf, &result.bitLength); in qrcodegen_makeEci() 969 } else if (assignVal < (1 << 14)) { in qrcodegen_makeEci() 972 appendBitsToBuffer((unsigned int)assignVal, 14, buf, &result.bitLength); in qrcodegen_makeEci() 973 } else if (assignVal < 1000000L) { in qrcodegen_makeEci() 976 appendBitsToBuffer((unsigned int)(assignVal >> 10), 11, buf, &result.bitLength); in qrcodegen_makeEci() 977 appendBitsToBuffer((unsigned int)(assignVal & 0x3FF), 10, buf, &result.bitLength); in qrcodegen_makeEci()
|
D | qrcodegen.h | 361 struct qrcodegen_Segment qrcodegen_makeEci(long assignVal, uint8_t buf[]);
|