Files
rr3-apk/smali_classes3/com/google/zxing/qrcode/encoder/ByteMatrix.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

230 lines
4.2 KiB
Smali

.class public final Lcom/google/zxing/qrcode/encoder/ByteMatrix;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final bytes:[[B
.field public final height:I
.field public final width:I
# direct methods
.method public constructor <init>(II)V
.locals 2
.line 33
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
filled-new-array {p2, p1}, [I
move-result-object v0
sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
.line 34
invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [[B
iput-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
iput p1, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
iput p2, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
return-void
.end method
# virtual methods
.method public clear(B)V
.locals 4
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 71
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 72
invoke-static {v3, p1}, Ljava/util/Arrays;->fill([BB)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public get(II)B
.locals 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 48
aget-object p2, v0, p2
aget-byte p1, p2, p1
return p1
.end method
.method public getArray()[[B
.locals 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
return-object v0
.end method
.method public getHeight()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
return v0
.end method
.method public getWidth()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
return v0
.end method
.method public set(III)V
.locals 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 63
aget-object p2, v0, p2
int-to-byte p3, p3
aput-byte p3, p2, p1
return-void
.end method
.method public set(IIZ)V
.locals 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 67
aget-object p2, v0, p2
int-to-byte p3, p3
aput-byte p3, p2, p1
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 7
.line 78
new-instance v0, Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
mul-int/lit8 v1, v1, 0x2
iget v2, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
mul-int/2addr v1, v2
add-int/lit8 v1, v1, 0x2
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const/4 v1, 0x0
move v2, v1
:goto_0
iget v3, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
if-ge v2, v3, :cond_3
iget-object v3, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 80
aget-object v3, v3, v2
move v4, v1
:goto_1
iget v5, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
if-ge v4, v5, :cond_2
.line 82
aget-byte v5, v3, v4
if-eqz v5, :cond_1
const/4 v6, 0x1
if-eq v5, v6, :cond_0
const-string v5, " "
.line 90
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2
:cond_0
const-string v5, " 1"
.line 87
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2
:cond_1
const-string v5, " 0"
.line 84
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_2
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_2
const/16 v3, 0xa
.line 94
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 96
:cond_3
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method