Files
rr3-apk/smali/androidx/datastore/preferences/protobuf/AllocatedBuffer.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

141 lines
3.4 KiB
Smali

.class abstract Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 42
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static wrap(Ljava/nio/ByteBuffer;)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.locals 1
const-string v0, "buffer"
.line 154
invoke-static {p0, v0}, Landroidx/datastore/preferences/protobuf/Internal;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 156
new-instance v0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$1;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$1;-><init>(Ljava/nio/ByteBuffer;)V
return-object v0
.end method
.method public static wrap([B)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.locals 2
.line 132
array-length v0, p0
const/4 v1, 0x0
invoke-static {p0, v1, v0}, Landroidx/datastore/preferences/protobuf/AllocatedBuffer;->wrapNoCheck([BII)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
move-result-object p0
return-object p0
.end method
.method public static wrap([BII)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.locals 2
if-ltz p1, :cond_0
if-ltz p2, :cond_0
add-int v0, p1, p2
.line 141
array-length v1, p0
if-gt v0, v1, :cond_0
.line 146
invoke-static {p0, p1, p2}, Landroidx/datastore/preferences/protobuf/AllocatedBuffer;->wrapNoCheck([BII)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
move-result-object p0
return-object p0
.line 142
:cond_0
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
array-length p0, p0
.line 143
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
filled-new-array {p0, p1, p2}, [Ljava/lang/Object;
move-result-object p0
const-string p1, "bytes.length=%d, offset=%d, length=%d"
invoke-static {p1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private static wrapNoCheck([BII)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.locals 1
.line 208
new-instance v0, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;
invoke-direct {v0, p0, p1, p2}, Landroidx/datastore/preferences/protobuf/AllocatedBuffer$2;-><init>([BII)V
return-object v0
.end method
# virtual methods
.method public abstract array()[B
.end method
.method public abstract arrayOffset()I
.end method
.method public abstract hasArray()Z
.end method
.method public abstract hasNioBuffer()Z
.end method
.method public abstract limit()I
.end method
.method public abstract nioBuffer()Ljava/nio/ByteBuffer;
.end method
.method public abstract position()I
.end method
.method public abstract position(I)Landroidx/datastore/preferences/protobuf/AllocatedBuffer;
.end method
.method public abstract remaining()I
.end method