- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
49 lines
1.5 KiB
Java
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();
|
|
}
|
|
}
|