Files
rr3-apk/smali_classes5/okio/RealBufferedSource$1.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

245 lines
5.1 KiB
Smali

.class public Lokio/RealBufferedSource$1;
.super Ljava/io/InputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokio/RealBufferedSource;->inputStream()Ljava/io/InputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lokio/RealBufferedSource;
# direct methods
.method public constructor <init>(Lokio/RealBufferedSource;)V
.locals 0
iput-object p1, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 432
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public available()I
.locals 4
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 455
iget-boolean v1, v0, Lokio/RealBufferedSource;->closed:Z
if-nez v1, :cond_0
.line 456
iget-object v0, v0, Lokio/RealBufferedSource;->buffer:Lokio/Buffer;
iget-wide v0, v0, Lokio/Buffer;->size:J
const-wide/32 v2, 0x7fffffff
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v0, v0
return v0
.line 455
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public close()V
.locals 1
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 460
invoke-virtual {v0}, Lokio/RealBufferedSource;->close()V
return-void
.end method
.method public read()I
.locals 6
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 434
iget-boolean v1, v0, Lokio/RealBufferedSource;->closed:Z
if-nez v1, :cond_1
.line 435
iget-object v1, v0, Lokio/RealBufferedSource;->buffer:Lokio/Buffer;
iget-wide v2, v1, Lokio/Buffer;->size:J
const-wide/16 v4, 0x0
cmp-long v2, v2, v4
if-nez v2, :cond_0
.line 436
iget-object v0, v0, Lokio/RealBufferedSource;->source:Lokio/Source;
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v0, v0, v2
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
:cond_0
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 439
iget-object v0, v0, Lokio/RealBufferedSource;->buffer:Lokio/Buffer;
invoke-virtual {v0}, Lokio/Buffer;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
return v0
.line 434
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([BII)I
.locals 7
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 443
iget-boolean v0, v0, Lokio/RealBufferedSource;->closed:Z
if-nez v0, :cond_1
.line 444
array-length v0, p1
int-to-long v1, v0
int-to-long v3, p2
int-to-long v5, p3
invoke-static/range {v1 .. v6}, Lokio/Util;->checkOffsetAndCount(JJJ)V
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 446
iget-object v1, v0, Lokio/RealBufferedSource;->buffer:Lokio/Buffer;
iget-wide v2, v1, Lokio/Buffer;->size:J
const-wide/16 v4, 0x0
cmp-long v2, v2, v4
if-nez v2, :cond_0
.line 447
iget-object v0, v0, Lokio/RealBufferedSource;->source:Lokio/Source;
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v0, v0, v2
if-nez v0, :cond_0
const/4 p1, -0x1
return p1
:cond_0
iget-object v0, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
.line 451
iget-object v0, v0, Lokio/RealBufferedSource;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->read([BII)I
move-result p1
return p1
.line 443
:cond_1
new-instance p1, Ljava/io/IOException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 464
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lokio/RealBufferedSource$1;->this$0:Lokio/RealBufferedSource;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".inputStream()"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method