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

220 lines
5.7 KiB
Smali

.class public Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
.super Landroidx/emoji2/text/flatbuffer/FlexBuffers$Sized;
.source "FlexBuffers.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/emoji2/text/flatbuffer/FlexBuffers;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Blob"
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
.field static final EMPTY:Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 673
const-class v0, Landroidx/emoji2/text/flatbuffer/FlexBuffers;
.line 674
new-instance v0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
invoke-static {}, Landroidx/emoji2/text/flatbuffer/FlexBuffers;->access$000()Landroidx/emoji2/text/flatbuffer/ReadBuf;
move-result-object v1
const/4 v2, 0x1
invoke-direct {v0, v1, v2, v2}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;-><init>(Landroidx/emoji2/text/flatbuffer/ReadBuf;II)V
sput-object v0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->EMPTY:Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
return-void
.end method
.method constructor <init>(Landroidx/emoji2/text/flatbuffer/ReadBuf;II)V
.locals 0
.line 677
invoke-direct {p0, p1, p2, p3}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Sized;-><init>(Landroidx/emoji2/text/flatbuffer/ReadBuf;II)V
return-void
.end method
.method public static empty()Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
.locals 1
sget-object v0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->EMPTY:Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;
return-object v0
.end method
# virtual methods
.method public data()Ljava/nio/ByteBuffer;
.locals 2
.line 690
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->bb:Landroidx/emoji2/text/flatbuffer/ReadBuf;
invoke-interface {v0}, Landroidx/emoji2/text/flatbuffer/ReadBuf;->data()[B
move-result-object v0
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
move-result-object v0
.line 691
iget v1, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 692
iget v1, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
invoke-virtual {p0}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->size()I
move-result p0
add-int/2addr v1, p0
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
.line 693
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;
move-result-object p0
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;
move-result-object p0
return-object p0
.end method
.method public get(I)B
.locals 1
.line 715
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->bb:Landroidx/emoji2/text/flatbuffer/ReadBuf;
iget p0, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
add-int/2addr p0, p1
invoke-interface {v0, p0}, Landroidx/emoji2/text/flatbuffer/ReadBuf;->get(I)B
move-result p0
return p0
.end method
.method public getBytes()[B
.locals 5
.line 701
invoke-virtual {p0}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->size()I
move-result v0
.line 702
new-array v1, v0, [B
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 704
iget-object v3, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->bb:Landroidx/emoji2/text/flatbuffer/ReadBuf;
iget v4, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
add-int/2addr v4, v2
invoke-interface {v3, v4}, Landroidx/emoji2/text/flatbuffer/ReadBuf;->get(I)B
move-result v3
aput-byte v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v1
.end method
.method public bridge synthetic size()I
.locals 0
.line 673
invoke-super {p0}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Sized;->size()I
move-result p0
return p0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 723
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->bb:Landroidx/emoji2/text/flatbuffer/ReadBuf;
iget v1, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
invoke-virtual {p0}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->size()I
move-result p0
invoke-interface {v0, v1, p0}, Landroidx/emoji2/text/flatbuffer/ReadBuf;->getString(II)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public toString(Ljava/lang/StringBuilder;)Ljava/lang/StringBuilder;
.locals 3
const/16 v0, 0x22
.line 731
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 732
iget-object v1, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->bb:Landroidx/emoji2/text/flatbuffer/ReadBuf;
iget v2, p0, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->end:I
invoke-virtual {p0}, Landroidx/emoji2/text/flatbuffer/FlexBuffers$Blob;->size()I
move-result p0
invoke-interface {v1, v2, p0}, Landroidx/emoji2/text/flatbuffer/ReadBuf;->getString(II)Ljava/lang/String;
move-result-object p0
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 733
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
return-object p0
.end method