Files
rr3-apk/decompiled/sources/com/google/zxing/aztec/encoder/BinaryShiftToken.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

49 lines
1.5 KiB
Java

package com.google.zxing.aztec.encoder;
import com.google.zxing.common.BitArray;
/* loaded from: classes3.dex */
public final class BinaryShiftToken extends Token {
public final short binaryShiftByteCount;
public final short binaryShiftStart;
public BinaryShiftToken(Token token, int i, int i2) {
super(token);
this.binaryShiftStart = (short) i;
this.binaryShiftByteCount = (short) i2;
}
@Override // com.google.zxing.aztec.encoder.Token
public void appendTo(BitArray bitArray, byte[] bArr) {
int i = 0;
while (true) {
short s = this.binaryShiftByteCount;
if (i >= s) {
return;
}
if (i == 0 || (i == 31 && s <= 62)) {
bitArray.appendBits(31, 5);
short s2 = this.binaryShiftByteCount;
if (s2 > 62) {
bitArray.appendBits(s2 - 31, 16);
} else if (i == 0) {
bitArray.appendBits(Math.min((int) s2, 31), 5);
} else {
bitArray.appendBits(s2 - 31, 5);
}
}
bitArray.appendBits(bArr[this.binaryShiftStart + i], 8);
i++;
}
}
public String toString() {
StringBuilder sb = new StringBuilder("<");
sb.append((int) this.binaryShiftStart);
sb.append("::");
sb.append((this.binaryShiftStart + this.binaryShiftByteCount) - 1);
sb.append('>');
return sb.toString();
}
}