- 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
1729 lines
35 KiB
Smali
1729 lines
35 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public data:[B
|
|
|
|
.field private limit:I
|
|
|
|
.field private position:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 21
|
|
new-array v0, p1, [B
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([B)V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 28
|
|
array-length p1, p1
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([BI)V
|
|
.locals 0
|
|
|
|
.line 32
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bytesLeft()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final capacity()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 78
|
|
:cond_0
|
|
array-length v0, v0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getPosition()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final limit()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final peekChar()C
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 118
|
|
aget-byte v2, v0, v1
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
aget-byte v0, v0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
int-to-char v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final peekUnsignedByte()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 113
|
|
aget-byte v0, v0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readBytes(Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableBitArray;I)V
|
|
.locals 2
|
|
|
|
.line 95
|
|
iget-object v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableBitArray;->data:[B
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readBytes([BII)V
|
|
|
|
.line 96
|
|
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableBitArray;->setPosition(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final readBytes(Ljava/nio/ByteBuffer;I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 107
|
|
invoke-virtual {p1, v0, v1, p2}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;
|
|
|
|
iget p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final readBytes([BII)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 101
|
|
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iget p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final readDouble()D
|
|
.locals 2
|
|
|
|
.line 284
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final readFloat()F
|
|
.locals 1
|
|
|
|
.line 279
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Float;->intBitsToFloat(I)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readInt()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 195
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x18
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x10
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v3, v1, 0x3
|
|
|
|
aget-byte v4, v0, v4
|
|
|
|
and-int/lit16 v4, v4, 0xff
|
|
|
|
shl-int/lit8 v4, v4, 0x8
|
|
|
|
or-int/2addr v2, v4
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v3
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readInt24()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 158
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x18
|
|
|
|
shr-int/lit8 v3, v3, 0x8
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLine()Ljava/lang/String;
|
|
.locals 6
|
|
|
|
.line 333
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->bytesLeft()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 337
|
|
aget-byte v1, v1, v0
|
|
|
|
invoke-static {v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->isLinebreak(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
sub-int v2, v0, v1
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-lt v2, v3, :cond_2
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 340
|
|
aget-byte v4, v2, v1
|
|
|
|
const/16 v5, -0x11
|
|
|
|
if-ne v4, v5, :cond_2
|
|
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
aget-byte v4, v2, v4
|
|
|
|
const/16 v5, -0x45
|
|
|
|
if-ne v4, v5, :cond_2
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v2, v4
|
|
|
|
const/16 v4, -0x41
|
|
|
|
if-ne v2, v4, :cond_2
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
sub-int v3, v0, v2
|
|
|
|
.line 345
|
|
invoke-static {v1, v2, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->fromUtf8Bytes([BII)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
return-object v1
|
|
|
|
:cond_3
|
|
iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 350
|
|
aget-byte v4, v3, v0
|
|
|
|
const/16 v5, 0xd
|
|
|
|
if-ne v4, v5, :cond_4
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
if-ne v0, v2, :cond_4
|
|
|
|
return-object v1
|
|
|
|
:cond_4
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 356
|
|
aget-byte v2, v3, v0
|
|
|
|
const/16 v3, 0xa
|
|
|
|
if-ne v2, v3, :cond_5
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
:cond_5
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final readLittleEndianInt()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 203
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v3, v1, 0x3
|
|
|
|
aget-byte v4, v0, v4
|
|
|
|
and-int/lit16 v4, v4, 0xff
|
|
|
|
shl-int/lit8 v4, v4, 0x10
|
|
|
|
or-int/2addr v2, v4
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v3
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x18
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianInt24()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 165
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x10
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianLong()J
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 223
|
|
aget-byte v3, v0, v1
|
|
|
|
int-to-long v3, v3
|
|
|
|
const-wide/16 v5, 0xff
|
|
|
|
and-long/2addr v3, v5
|
|
|
|
add-int/lit8 v7, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
int-to-long v8, v2
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v2, 0x8
|
|
|
|
shl-long/2addr v8, v2
|
|
|
|
or-long/2addr v3, v8
|
|
|
|
add-int/lit8 v8, v1, 0x3
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v9, v7
|
|
|
|
and-long/2addr v9, v5
|
|
|
|
const/16 v7, 0x10
|
|
|
|
shl-long/2addr v9, v7
|
|
|
|
or-long/2addr v3, v9
|
|
|
|
add-int/lit8 v7, v1, 0x4
|
|
|
|
aget-byte v8, v0, v8
|
|
|
|
int-to-long v8, v8
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v10, 0x18
|
|
|
|
shl-long/2addr v8, v10
|
|
|
|
or-long/2addr v3, v8
|
|
|
|
add-int/lit8 v8, v1, 0x5
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v9, v7
|
|
|
|
and-long/2addr v9, v5
|
|
|
|
const/16 v7, 0x20
|
|
|
|
shl-long/2addr v9, v7
|
|
|
|
or-long/2addr v3, v9
|
|
|
|
add-int/lit8 v7, v1, 0x6
|
|
|
|
aget-byte v8, v0, v8
|
|
|
|
int-to-long v8, v8
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v10, 0x28
|
|
|
|
shl-long/2addr v8, v10
|
|
|
|
or-long/2addr v3, v8
|
|
|
|
add-int/lit8 v8, v1, 0x7
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v9, v7
|
|
|
|
and-long/2addr v9, v5
|
|
|
|
const/16 v7, 0x30
|
|
|
|
shl-long/2addr v9, v7
|
|
|
|
or-long/2addr v3, v9
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v8
|
|
|
|
int-to-long v0, v0
|
|
|
|
and-long/2addr v0, v5
|
|
|
|
const/16 v2, 0x38
|
|
|
|
shl-long/2addr v0, v2
|
|
|
|
or-long/2addr v0, v3
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianShort()S
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 146
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x8
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
int-to-short v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianUnsignedInt()J
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 187
|
|
aget-byte v3, v0, v1
|
|
|
|
int-to-long v3, v3
|
|
|
|
const-wide/16 v5, 0xff
|
|
|
|
and-long/2addr v3, v5
|
|
|
|
add-int/lit8 v7, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
int-to-long v8, v2
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v2, 0x8
|
|
|
|
shl-long/2addr v8, v2
|
|
|
|
or-long v2, v3, v8
|
|
|
|
add-int/lit8 v4, v1, 0x3
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v9, 0x10
|
|
|
|
shl-long/2addr v7, v9
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
int-to-long v0, v0
|
|
|
|
and-long/2addr v0, v5
|
|
|
|
const/16 v4, 0x18
|
|
|
|
shl-long/2addr v0, v4
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianUnsignedInt24()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 172
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x10
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLittleEndianUnsignedIntToInt()I
|
|
.locals 4
|
|
|
|
.line 261
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readLittleEndianInt()I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 263
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Top bit not zero: "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final readLittleEndianUnsignedShort()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 135
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x8
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readLong()J
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 211
|
|
aget-byte v3, v0, v1
|
|
|
|
int-to-long v3, v3
|
|
|
|
const-wide/16 v5, 0xff
|
|
|
|
and-long/2addr v3, v5
|
|
|
|
const/16 v7, 0x38
|
|
|
|
shl-long/2addr v3, v7
|
|
|
|
add-int/lit8 v7, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
int-to-long v8, v2
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v2, 0x30
|
|
|
|
shl-long/2addr v8, v2
|
|
|
|
or-long v2, v3, v8
|
|
|
|
add-int/lit8 v4, v1, 0x3
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v9, 0x28
|
|
|
|
shl-long/2addr v7, v9
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v7, v1, 0x4
|
|
|
|
aget-byte v4, v0, v4
|
|
|
|
int-to-long v8, v4
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v4, 0x20
|
|
|
|
shl-long/2addr v8, v4
|
|
|
|
or-long/2addr v2, v8
|
|
|
|
add-int/lit8 v4, v1, 0x5
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v9, 0x18
|
|
|
|
shl-long/2addr v7, v9
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v7, v1, 0x6
|
|
|
|
aget-byte v4, v0, v4
|
|
|
|
int-to-long v8, v4
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v4, 0x10
|
|
|
|
shl-long/2addr v8, v4
|
|
|
|
or-long/2addr v2, v8
|
|
|
|
add-int/lit8 v4, v1, 0x7
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v9, 0x8
|
|
|
|
shl-long/2addr v7, v9
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/2addr v1, v9
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
int-to-long v0, v0
|
|
|
|
and-long/2addr v0, v5
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final readNullTerminatedString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 316
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->bytesLeft()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 320
|
|
aget-byte v1, v1, v0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
sub-int v3, v0, v2
|
|
|
|
.line 323
|
|
invoke-static {v1, v2, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->fromUtf8Bytes([BII)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-ge v0, v2, :cond_2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
:cond_2
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final readNullTerminatedString(I)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, ""
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int v1, v0, p1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 306
|
|
aget-byte v1, v2, v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
add-int/lit8 v1, p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v1, p1
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 309
|
|
invoke-static {v2, v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->fromUtf8Bytes([BII)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final readShort()S
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 140
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x8
|
|
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
int-to-short v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readString(I)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "UTF-8"
|
|
|
|
.line 289
|
|
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readString(ILjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final readString(ILjava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 294
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
invoke-direct {v0, v1, v2, p1, p2}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
|
|
|
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final readSynchSafeInt()I
|
|
.locals 4
|
|
|
|
.line 243
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result v0
|
|
|
|
.line 244
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result v1
|
|
|
|
.line 245
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result v2
|
|
|
|
.line 246
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result v3
|
|
|
|
shl-int/lit8 v0, v0, 0x15
|
|
|
|
shl-int/lit8 v1, v1, 0xe
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
shl-int/lit8 v1, v2, 0x7
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readUnsignedByte()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 124
|
|
aget-byte v0, v0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readUnsignedFixedPoint1616()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 235
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x8
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readUnsignedInt()J
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 179
|
|
aget-byte v3, v0, v1
|
|
|
|
int-to-long v3, v3
|
|
|
|
const-wide/16 v5, 0xff
|
|
|
|
and-long/2addr v3, v5
|
|
|
|
const/16 v7, 0x18
|
|
|
|
shl-long/2addr v3, v7
|
|
|
|
add-int/lit8 v7, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
int-to-long v8, v2
|
|
|
|
and-long/2addr v8, v5
|
|
|
|
const/16 v2, 0x10
|
|
|
|
shl-long/2addr v8, v2
|
|
|
|
or-long v2, v3, v8
|
|
|
|
add-int/lit8 v4, v1, 0x3
|
|
|
|
aget-byte v7, v0, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v9, 0x8
|
|
|
|
shl-long/2addr v7, v9
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
int-to-long v0, v0
|
|
|
|
and-long/2addr v0, v5
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final readUnsignedInt24()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 151
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x10
|
|
|
|
add-int/lit8 v4, v1, 0x2
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v4
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readUnsignedIntToInt()I
|
|
.locals 4
|
|
|
|
.line 252
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 254
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Top bit not zero: "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final readUnsignedLongToLong()J
|
|
.locals 5
|
|
|
|
.line 270
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->readLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
.line 272
|
|
:cond_0
|
|
new-instance v2, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Top bit not zero: "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final readUnsignedShort()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 129
|
|
aget-byte v3, v0, v1
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x8
|
|
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readUtf8EncodedLong()J
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
.line 365
|
|
aget-byte v0, v0, v1
|
|
|
|
int-to-long v0, v0
|
|
|
|
const/4 v2, 0x7
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-ltz v3, :cond_2
|
|
|
|
shl-int v6, v5, v3
|
|
|
|
int-to-long v7, v6
|
|
|
|
and-long/2addr v7, v0
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
cmp-long v7, v7, v9
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
if-ge v3, v4, :cond_0
|
|
|
|
sub-int/2addr v6, v5
|
|
|
|
int-to-long v6, v6
|
|
|
|
and-long/2addr v0, v6
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
if-ne v3, v2, :cond_2
|
|
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_5
|
|
|
|
:goto_2
|
|
if-ge v5, v2, :cond_4
|
|
|
|
iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iget v6, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr v6, v5
|
|
|
|
.line 382
|
|
aget-byte v3, v3, v6
|
|
|
|
and-int/lit16 v6, v3, 0xc0
|
|
|
|
const/16 v7, 0x80
|
|
|
|
if-ne v6, v7, :cond_3
|
|
|
|
shl-long/2addr v0, v4
|
|
|
|
and-int/lit8 v3, v3, 0x3f
|
|
|
|
int-to-long v6, v3
|
|
|
|
or-long/2addr v0, v6
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 384
|
|
:cond_3
|
|
new-instance v2, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Invalid UTF-8 sequence continuation byte: "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_4
|
|
iget v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
iput v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-wide v0
|
|
|
|
.line 379
|
|
:cond_5
|
|
new-instance v2, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Invalid UTF-8 sequence first byte: "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final reset()V
|
|
.locals 1
|
|
|
|
.line 0
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final reset(I)V
|
|
.locals 1
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->capacity()I
|
|
|
|
move-result v0
|
|
|
|
if-ge v0, p1, :cond_0
|
|
|
|
new-array v0, p1, [B
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, v0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->reset([BI)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final reset([BI)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setLimit(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->data:[B
|
|
|
|
.line 67
|
|
array-length v0, v0
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkArgument(Z)V
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setPosition(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->limit:I
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 84
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkArgument(Z)V
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final skipBytes(I)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->position:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
.line 90
|
|
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/ParsableByteArray;->setPosition(I)V
|
|
|
|
return-void
|
|
.end method
|