Rabbit-R1/android (non root)/smali/smali_classes2/androidx/emoji2/text/flatbuffer/FlatBufferBuilder$ByteBufferBackedInputStream.smali
2024-05-21 17:08:36 -04:00

61 lines
1.4 KiB
Smali

.class Landroidx/emoji2/text/flatbuffer/FlatBufferBuilder$ByteBufferBackedInputStream;
.super Ljava/io/InputStream;
.source "FlatBufferBuilder.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/emoji2/text/flatbuffer/FlatBufferBuilder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "ByteBufferBackedInputStream"
.end annotation
# instance fields
.field buf:Ljava/nio/ByteBuffer;
# direct methods
.method public constructor <init>(Ljava/nio/ByteBuffer;)V
.locals 0
.line 1041
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
iput-object p1, p0, Landroidx/emoji2/text/flatbuffer/FlatBufferBuilder$ByteBufferBackedInputStream;->buf:Ljava/nio/ByteBuffer;
return-void
.end method
# virtual methods
.method public read()I
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/FlatBufferBuilder$ByteBufferBackedInputStream;->buf:Ljava/nio/ByteBuffer;
.line 1047
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B
move-result p0
:try_end_0
.catch Ljava/nio/BufferUnderflowException; {:try_start_0 .. :try_end_0} :catch_0
and-int/lit16 p0, p0, 0xff
return p0
:catch_0
const/4 p0, -0x1
return p0
.end method