- 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
152 lines
3.5 KiB
Smali
152 lines
3.5 KiB
Smali
.class final Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;
|
|
.super Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/datastore/preferences/protobuf/AllocatedBuffer;->wrapNoCheck([BII)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private position:I
|
|
|
|
.field final synthetic val$bytes:[B
|
|
|
|
.field final synthetic val$length:I
|
|
|
|
.field final synthetic val$offset:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>([BII)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$bytes:[B
|
|
|
|
iput p2, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$offset:I
|
|
|
|
iput p3, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$length:I
|
|
|
|
.line 208
|
|
invoke-direct {p0}, Landroidx/datastore/preferences/protobuf/AllocatedBuffer;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public array()[B
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$bytes:[B
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public arrayOffset()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$offset:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasArray()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasNioBuffer()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public limit()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$length:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public nioBuffer()Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
.line 219
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public position()I
|
|
.locals 1
|
|
|
|
.line 0
|
|
iget v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->position:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public position(I)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
|
|
.locals 3
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
iget v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$length:I
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->position:I
|
|
|
|
return-object p0
|
|
|
|
.line 245
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Invalid position: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public remaining()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->val$length:I
|
|
|
|
iget v1, p0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;->position:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|