mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
432 lines
10 KiB
Smali
432 lines
10 KiB
Smali
.class public Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;
|
|
.super Ljava/lang/Object;
|
|
.source "ByteBufferReadWriteBuf.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/emoji2/text/flatbuffer/ReadWriteBuf;
|
|
|
|
|
|
# instance fields
|
|
.field private final buffer:Ljava/nio/ByteBuffer;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/nio/ByteBuffer;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 12
|
|
sget-object p0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {p1, p0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public data()[B
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 57
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public get(I)B
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 22
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->get(I)B
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getBoolean(I)Z
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->get(I)B
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public getDouble(I)D
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 47
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getDouble(I)D
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public getFloat(I)F
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 42
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getFloat(I)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getInt(I)I
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 32
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getLong(I)J
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 37
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getLong(I)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public getShort(I)S
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 27
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getShort(I)S
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getString(II)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 52
|
|
invoke-static {p0, p1, p2}, Landroidx/emoji2/text/flatbuffer/Utf8Safe;->decodeUtf8Buffer(Ljava/nio/ByteBuffer;II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public limit()I
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 157
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->limit()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public put(B)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 72
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->put(B)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public put([BII)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 67
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putBoolean(Z)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 62
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->put(B)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putDouble(D)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 97
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->putDouble(D)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putFloat(F)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 92
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->putFloat(F)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putInt(I)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 82
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putLong(J)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 87
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public putShort(S)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 77
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public requestCapacity(I)Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 162
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->limit()I
|
|
|
|
move-result p0
|
|
|
|
if-gt p1, p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public set(IB)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x1
|
|
|
|
.line 107
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 108
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public set(I[BII)V
|
|
.locals 2
|
|
|
|
sub-int v0, p4, p3
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
.line 113
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 114
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 115
|
|
invoke-virtual {v1, p1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
iget-object p1, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 116
|
|
invoke-virtual {p1, p2, p3, p4}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 117
|
|
invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBoolean(IZ)V
|
|
.locals 0
|
|
|
|
.line 102
|
|
invoke-virtual {p0, p1, p2}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->set(IB)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDouble(ID)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x8
|
|
|
|
.line 146
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 147
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/nio/ByteBuffer;->putDouble(ID)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFloat(IF)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x4
|
|
|
|
.line 140
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 141
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->putFloat(IF)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInt(II)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x4
|
|
|
|
.line 128
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 129
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->putInt(II)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLong(IJ)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x8
|
|
|
|
.line 134
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 135
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/nio/ByteBuffer;->putLong(IJ)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShort(IS)V
|
|
.locals 1
|
|
|
|
add-int/lit8 v0, p1, 0x2
|
|
|
|
.line 122
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->requestCapacity(I)Z
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 123
|
|
invoke-virtual {p0, p1, p2}, Ljava/nio/ByteBuffer;->putShort(IS)Ljava/nio/ByteBuffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public writePosition()I
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/ByteBufferReadWriteBuf;->buffer:Ljava/nio/ByteBuffer;
|
|
|
|
.line 152
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|