b$b.smali
.class public final Lfr/greweb/reactnativeviewshot/b$b;
.super Ljava/io/ByteArrayOutputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lfr/greweb/reactnativeviewshot/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "b"
.end annotation
# direct methods
.method public constructor <init>([B)V
.registers 3
const/4 v0, 0x0
.line 1
invoke-direct {p0, v0}, Ljava/io/ByteArrayOutputStream;-><init>(I)V
.line 2
iput-object p1, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
return-void
.end method
# virtual methods
.method public final a(I)Ljava/nio/ByteBuffer;
.registers 6
.line 1
iget-object v0, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
array-length v1, v0
if-ge v1, p1, :cond_2c
.line 2
array-length v1, v0
shl-int/lit8 v1, v1, 0x1
sub-int v2, v1, p1
if-gez v2, :cond_d
move v1, p1
:cond_d
const v2, 0x7ffffff7
sub-int v3, v1, v2
if-lez v3, :cond_26
if-ltz p1, :cond_20
if-le p1, v2, :cond_1c
const v1, 0x7fffffff
goto :goto_26
:cond_1c
const v1, 0x7ffffff7
goto :goto_26
.line 3
:cond_20
new-instance p1, Ljava/lang/OutOfMemoryError;
invoke-direct {p1}, Ljava/lang/OutOfMemoryError;-><init>()V
throw p1
.line 4
:cond_26
:goto_26
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object p1
iput-object p1, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
.line 5
:cond_2c
iget-object p1, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
invoke-static {p1}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
move-result-object p1
return-object p1
.end method
.method public final h()[B
.registers 2
iget-object v0, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
return-object v0
.end method
.method public final l(I)V
.registers 2
iput p1, p0, Ljava/io/ByteArrayOutputStream;->count:I
return-void
.end method