Files
rr3-apk/smali_classes4/com/mbridge/msdk/thrid/okio/RealBufferedSource.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

2359 lines
55 KiB
Smali

.class final Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/BufferedSource;
# instance fields
.field public final buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field closed:Z
.field public final source:Lcom/mbridge/msdk/thrid/okio/Source;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Source;)V
.locals 1
.line 30
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 26
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
return-void
.line 31
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "source == null"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public buffer()Lcom/mbridge/msdk/thrid/okio/Buffer;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
return-object v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 466
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Source;->close()V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 467
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->clear()V
return-void
.end method
.method public exhausted()Z
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 55
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->exhausted()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/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
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.line 54
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public indexOf(B)J
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v2, 0x0
const-wide v4, 0x7fffffffffffffffL
move-object v0, p0
move v1, p1
.line 331
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOf(BJJ)J
move-result-wide v0
return-wide v0
.end method
.method public indexOf(BJ)J
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide v4, 0x7fffffffffffffffL
move-object v0, p0
move v1, p1
move-wide v2, p2
.line 335
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOf(BJJ)J
move-result-wide p1
return-wide p1
.end method
.method public indexOf(BJJ)J
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_4
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-ltz v0, :cond_3
cmp-long v0, p4, p2
if-ltz v0, :cond_3
:goto_0
cmp-long v0, p2, p4
const-wide/16 v7, -0x1
if-gez v0, :cond_2
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
move v2, p1
move-wide v3, p2
move-wide v5, p4
.line 346
invoke-virtual/range {v1 .. v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;->indexOf(BJJ)J
move-result-wide v0
cmp-long v2, v0, v7
if-eqz v2, :cond_0
return-wide v0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 351
iget-wide v1, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
cmp-long v3, v1, p4
if-gez v3, :cond_2
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v4, 0x2000
.line 352
invoke-interface {v3, v0, v4, v5}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v3
cmp-long v0, v3, v7
if-nez v0, :cond_1
goto :goto_1
.line 355
:cond_1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->max(JJ)J
move-result-wide p2
goto :goto_0
:cond_2
:goto_1
return-wide v7
.line 341
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 342
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p3
filled-new-array {p2, p3}, [Ljava/lang/Object;
move-result-object p2
const-string p3, "fromIndex=%s toIndex=%s"
invoke-static {p3, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 339
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public indexOf(Lcom/mbridge/msdk/thrid/okio/ByteString;)J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
.line 361
invoke-virtual {p0, p1, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOf(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
move-result-wide v0
return-wide v0
.end method
.method public indexOf(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_2
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 368
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->indexOf(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_0
return-wide v0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 371
iget-wide v4, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v6, 0x2000
.line 372
invoke-interface {v1, v0, v6, v7}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v0
cmp-long v0, v0, v2
if-nez v0, :cond_1
return-wide v2
.line 375
:cond_1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
int-to-long v0, v0
sub-long/2addr v4, v0
const-wide/16 v0, 0x1
add-long/2addr v4, v0
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->max(JJ)J
move-result-wide p2
goto :goto_0
.line 365
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public indexOfElement(Lcom/mbridge/msdk/thrid/okio/ByteString;)J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
.line 380
invoke-virtual {p0, p1, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOfElement(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
move-result-wide v0
return-wide v0
.end method
.method public indexOfElement(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_2
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 387
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->indexOfElement(Lcom/mbridge/msdk/thrid/okio/ByteString;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_0
return-wide v0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 390
iget-wide v4, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v6, 0x2000
.line 391
invoke-interface {v1, v0, v6, v7}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v0
cmp-long v0, v0, v2
if-nez v0, :cond_1
return-wide v2
.line 394
:cond_1
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->max(JJ)J
move-result-wide p2
goto :goto_0
.line 384
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public inputStream()Ljava/io/InputStream;
.locals 1
.line 422
new-instance v0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource$1;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource$1;-><init>(Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;)V
return-object v0
.end method
.method public isOpen()Z
.locals 1
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
xor-int/lit8 v0, v0, 0x1
return v0
.end method
.method public rangeEquals(JLcom/mbridge/msdk/thrid/okio/ByteString;)Z
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v4, 0x0
.line 399
invoke-virtual {p3}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v5
move-object v0, p0
move-wide v1, p1
move-object v3, p3
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->rangeEquals(JLcom/mbridge/msdk/thrid/okio/ByteString;II)Z
move-result p1
return p1
.end method
.method public rangeEquals(JLcom/mbridge/msdk/thrid/okio/ByteString;II)Z
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_5
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
const/4 v1, 0x0
if-ltz v0, :cond_4
if-ltz p4, :cond_4
if-ltz p5, :cond_4
.line 410
invoke-virtual {p3}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
sub-int/2addr v0, p4
if-ge v0, p5, :cond_0
goto :goto_1
:cond_0
move v0, v1
:goto_0
if-ge v0, p5, :cond_3
int-to-long v2, v0
add-long/2addr v2, p1
const-wide/16 v4, 0x1
add-long/2addr v4, v2
.line 415
invoke-virtual {p0, v4, v5}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result v4
if-nez v4, :cond_1
return v1
:cond_1
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 416
invoke-virtual {v4, v2, v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v2
add-int v3, p4, v0
invoke-virtual {p3, v3}, Lcom/mbridge/msdk/thrid/okio/ByteString;->getByte(I)B
move-result v3
if-eq v2, v3, :cond_2
return v1
:cond_2
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_3
const/4 p1, 0x1
return p1
:cond_4
:goto_1
return v1
.line 405
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public read(Ljava/nio/ByteBuffer;)I
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 147
iget-wide v1, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
const-wide/16 v3, 0x0
cmp-long v1, v1, v3
if-nez v1, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v2, 0x2000
.line 148
invoke-interface {v1, v0, v2, v3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/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, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 152
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->read(Ljava/nio/ByteBuffer;)I
move-result p1
return p1
.end method
.method public read([B)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 115
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->read([BII)I
move-result p1
return p1
.end method
.method public read([BII)I
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 135
array-length v0, p1
int-to-long v1, v0
int-to-long v3, p2
int-to-long v7, p3
move-wide v5, v7
invoke-static/range {v1 .. v6}, Lcom/mbridge/msdk/thrid/okio/Util;->checkOffsetAndCount(JJJ)V
iget-object p3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 137
iget-wide v0, p3, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-nez v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v1, 0x2000
.line 138
invoke-interface {v0, p3, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long p3, v0, v2
if-nez p3, :cond_0
const/4 p1, -0x1
return p1
:cond_0
iget-object p3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 142
iget-wide v0, p3, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
invoke-static {v7, v8, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int p3, v0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 143
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->read([BII)I
move-result p1
return p1
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_3
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_2
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v2, :cond_1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 44
iget-wide v3, v2, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
cmp-long v0, v3, v0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v3, 0x2000
.line 45
invoke-interface {v0, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v0, v0, v2
if-nez v0, :cond_0
return-wide v2
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 49
iget-wide v0, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 50
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
return-wide p1
.line 42
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 41
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 40
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "sink == null"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public readAll(Lcom/mbridge/msdk/thrid/okio/Sink;)J
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_3
const-wide/16 v0, 0x0
move-wide v2, v0
:cond_0
:goto_0
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v6, 0x2000
.line 170
invoke-interface {v4, v5, v6, v7}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v4
const-wide/16 v6, -0x1
cmp-long v4, v4, v6
if-eqz v4, :cond_1
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 171
invoke-virtual {v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->completeSegmentByteCount()J
move-result-wide v4
cmp-long v6, v4, v0
if-lez v6, :cond_0
add-long/2addr v2, v4
iget-object v6, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 174
invoke-interface {p1, v6, v4, v5}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
goto :goto_0
:cond_1
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 177
invoke-virtual {v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v4
cmp-long v0, v4, v0
if-lez v0, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 178
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v0
add-long/2addr v2, v0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 179
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v4
invoke-interface {p1, v0, v4, v5}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
:cond_2
return-wide v2
.line 167
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "sink == null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public readByte()B
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x1
.line 72
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 73
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByte()B
move-result v0
return v0
.end method
.method public readByteArray()[B
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 105
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 106
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteArray()[B
move-result-object v0
return-object v0
.end method
.method public readByteArray(J)[B
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 110
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 111
invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteArray(J)[B
move-result-object p1
return-object p1
.end method
.method public readByteString()Lcom/mbridge/msdk/thrid/okio/ByteString;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 77
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 78
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString()Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
return-object v0
.end method
.method public readByteString(J)Lcom/mbridge/msdk/thrid/okio/ByteString;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 82
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 83
invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString(J)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p1
return-object p1
.end method
.method public readDecimalLong()J
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x1
.line 283
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
const/4 v0, 0x0
:goto_0
add-int/lit8 v1, v0, 0x1
int-to-long v2, v1
.line 285
invoke-virtual {p0, v2, v3}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result v2
if-eqz v2, :cond_4
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
int-to-long v3, v0
.line 286
invoke-virtual {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v2
const/16 v3, 0x30
if-lt v2, v3, :cond_0
const/16 v3, 0x39
if-le v2, v3, :cond_1
:cond_0
if-nez v0, :cond_2
const/16 v3, 0x2d
if-eq v2, v3, :cond_1
goto :goto_1
:cond_1
move v0, v1
goto :goto_0
:cond_2
:goto_1
if-eqz v0, :cond_3
goto :goto_2
.line 290
:cond_3
new-instance v0, Ljava/lang/NumberFormatException;
.line 291
invoke-static {v2}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Expected leading [0-9] or \'-\' character but was %#x"
.line 290
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
:cond_4
:goto_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 297
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readDecimalLong()J
move-result-wide v0
return-wide v0
.end method
.method public readFully(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 157
:try_start_0
invoke-virtual {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 163
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readFully(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
return-void
:catch_0
move-exception p2
iget-object p3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 160
invoke-virtual {p1, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
.line 161
throw p2
.end method
.method public readFully([B)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 120
:try_start_0
array-length v0, p1
int-to-long v0, v0
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 131
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readFully([B)V
return-void
:catch_0
move-exception v0
const/4 v1, 0x0
:goto_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 124
iget-wide v3, v2, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
const-wide/16 v5, 0x0
cmp-long v5, v3, v5
if-lez v5, :cond_1
long-to-int v3, v3
.line 125
invoke-virtual {v2, p1, v1, v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->read([BII)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_0
add-int/2addr v1, v2
goto :goto_0
.line 126
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
.line 129
:cond_1
throw v0
.end method
.method public readHexadecimalUnsignedLong()J
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x1
.line 301
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
const/4 v0, 0x0
:goto_0
add-int/lit8 v1, v0, 0x1
int-to-long v2, v1
.line 303
invoke-virtual {p0, v2, v3}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result v2
if-eqz v2, :cond_5
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
int-to-long v3, v0
.line 304
invoke-virtual {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v2
const/16 v3, 0x30
if-lt v2, v3, :cond_0
const/16 v3, 0x39
if-le v2, v3, :cond_2
:cond_0
const/16 v3, 0x61
if-lt v2, v3, :cond_1
const/16 v3, 0x66
if-le v2, v3, :cond_2
:cond_1
const/16 v3, 0x41
if-lt v2, v3, :cond_3
const/16 v3, 0x46
if-le v2, v3, :cond_2
goto :goto_1
:cond_2
move v0, v1
goto :goto_0
:cond_3
:goto_1
if-eqz v0, :cond_4
goto :goto_2
.line 308
:cond_4
new-instance v0, Ljava/lang/NumberFormatException;
.line 309
invoke-static {v2}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Expected leading [0-9a-fA-F] character but was %#x"
.line 308
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
:cond_5
:goto_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 315
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readHexadecimalUnsignedLong()J
move-result-wide v0
return-wide v0
.end method
.method public readInt()I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x4
.line 263
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 264
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readInt()I
move-result v0
return v0
.end method
.method public readIntLe()I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x4
.line 268
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 269
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readIntLe()I
move-result v0
return v0
.end method
.method public readLong()J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x8
.line 273
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 274
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readLong()J
move-result-wide v0
return-wide v0
.end method
.method public readLongLe()J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x8
.line 278
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 279
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readLongLe()J
move-result-wide v0
return-wide v0
.end method
.method public readShort()S
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x2
.line 253
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 254
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readShort()S
move-result v0
return v0
.end method
.method public readShortLe()S
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x2
.line 258
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 259
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readShortLe()S
move-result v0
return v0
.end method
.method public readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 202
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
if-eqz p3, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 204
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p1
return-object p1
.line 203
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "charset == null"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public readString(Ljava/nio/charset/Charset;)Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 197
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 198
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readString(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p1
return-object p1
.line 195
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "charset == null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public readUtf8()Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 185
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 186
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public readUtf8(J)Ljava/lang/String;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 190
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 191
invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8(J)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public readUtf8CodePoint()I
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x1
.line 238
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v1, 0x0
.line 240
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v0
and-int/lit16 v1, v0, 0xe0
const/16 v2, 0xc0
if-ne v1, v2, :cond_0
const-wide/16 v0, 0x2
.line 242
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
goto :goto_0
:cond_0
and-int/lit16 v1, v0, 0xf0
const/16 v2, 0xe0
if-ne v1, v2, :cond_1
const-wide/16 v0, 0x3
.line 244
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
goto :goto_0
:cond_1
and-int/lit16 v0, v0, 0xf8
const/16 v1, 0xf0
if-ne v0, v1, :cond_2
const-wide/16 v0, 0x4
.line 246
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->require(J)V
:cond_2
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 249
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8CodePoint()I
move-result v0
return v0
.end method
.method public readUtf8Line()Ljava/lang/String;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/16 v0, 0xa
.line 208
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOf(B)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v2, v0, v2
if-nez v2, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 211
iget-wide v0, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->readUtf8(J)Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
:cond_1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 214
invoke-virtual {v2, v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8Line(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public readUtf8LineStrict()Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide v0, 0x7fffffffffffffffL
.line 218
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->readUtf8LineStrict(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public readUtf8LineStrict(J)Ljava/lang/String;
.locals 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_3
const-wide v0, 0x7fffffffffffffffL
cmp-long v2, p1, v0
const-wide/16 v3, 0x1
if-nez v2, :cond_0
move-wide v5, v0
goto :goto_0
:cond_0
add-long v5, p1, v3
:goto_0
const/16 v8, 0xa
const-wide/16 v9, 0x0
move-object v7, p0
move-wide v11, v5
.line 224
invoke-virtual/range {v7 .. v12}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->indexOf(BJJ)J
move-result-wide v7
const-wide/16 v9, -0x1
cmp-long v2, v7, v9
if-eqz v2, :cond_1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 225
invoke-virtual {p1, v7, v8}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8Line(J)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_1
cmp-long v0, v5, v0
if-gez v0, :cond_2
.line 227
invoke-virtual {p0, v5, v6}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
sub-long v1, v5, v3
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v0
const/16 v1, 0xd
if-ne v0, v1, :cond_2
add-long/2addr v3, v5
.line 228
invoke-virtual {p0, v3, v4}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v0, v5, v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;->getByte(J)B
move-result v0
const/16 v1, 0xa
if-ne v0, v1, :cond_2
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 229
invoke-virtual {p1, v5, v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readUtf8Line(J)Ljava/lang/String;
move-result-object p1
return-object p1
.line 231
:cond_2
new-instance v6, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v2, 0x0
const-wide/16 v4, 0x20
.line 232
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v7
invoke-static {v4, v5, v7, v8}, Ljava/lang/Math;->min(JJ)J
move-result-wide v4
move-object v1, v6
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okio/Buffer;->copyTo(Lcom/mbridge/msdk/thrid/okio/Buffer;JJ)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 233
new-instance v0, Ljava/io/EOFException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "\\n not found: limit="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v2
invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p1, " content="
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 234
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString()Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->hex()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 p1, 0x2026
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
throw v0
.line 222
:cond_3
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "limit < 0: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 request(J)Z
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_3
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_2
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 65
iget-wide v1, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
cmp-long v1, v1, p1
if-gez v1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v2, 0x2000
.line 66
invoke-interface {v1, v0, v2, v3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/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, 0x0
return p1
:cond_1
const/4 p1, 0x1
return p1
.line 64
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 63
:cond_3
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "byteCount < 0: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 require(J)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 59
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->request(J)Z
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
.end method
.method public select(Lcom/mbridge/msdk/thrid/okio/Options;)I
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_3
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const/4 v1, 0x1
.line 90
invoke-virtual {v0, p1, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->selectPrefix(Lcom/mbridge/msdk/thrid/okio/Options;Z)I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_1
return v1
:cond_1
const/4 v2, -0x2
if-ne v0, v2, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v3, 0x2000
.line 94
invoke-interface {v0, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v0, v2, v4
if-nez v0, :cond_0
return v1
.line 97
:cond_2
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okio/Options;->byteStrings:[Lcom/mbridge/msdk/thrid/okio/ByteString;
aget-object p1, p1, v0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result p1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
int-to-long v2, p1
.line 98
invoke-virtual {v1, v2, v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->skip(J)V
return v0
.line 87
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public skip(J)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->closed:Z
if-nez v0, :cond_3
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_2
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 321
iget-wide v3, v2, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
cmp-long v0, v3, v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
const-wide/16 v3, 0x2000
invoke-interface {v0, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v0, v0, v2
if-eqz v0, :cond_0
goto :goto_1
.line 322
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
:cond_1
:goto_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 324
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v0
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 325
invoke-virtual {v2, v0, v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->skip(J)V
sub-long/2addr p1, v0
goto :goto_0
:cond_2
return-void
.line 319
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
.line 471
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Source;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 475
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "buffer("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSource;->source:Lcom/mbridge/msdk/thrid/okio/Source;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
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